Skip to content

Commit

Permalink
Merge pull request ctb#1 from gadomski/master
Browse files Browse the repository at this point in the history
Import TwillException to twill.utils
  • Loading branch information
Jonathan Rogers committed Nov 7, 2011
2 parents 5d19a44 + 0d178af commit a182cd0
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 a182cd0

Please sign in to comment.