Skip to content

Commit

Permalink
import TwillException so we can raise it
Browse files Browse the repository at this point in the history
  • Loading branch information
gadomski committed Nov 4, 2011
1 parent 5d19a44 commit 0d178af
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test-utils.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import nose.tools

from twill import utils
from twill.errors import TwillException


class TestMakeBoolean:

@nose.tools.raises(TwillException)
def test_twill_exception(self):
utils.make_boolean('no')
2 changes: 2 additions & 0 deletions twill/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
from mechanize._util import time
from mechanize._http import HTTPRefreshProcessor
from mechanize import BrowserStateError
from twill.errors import TwillException


class ResultWrapper:
"""
Expand Down

0 comments on commit 0d178af

Please sign in to comment.