diff options
author | Arthur Vuillard <arthur.vuillard@gmail.com> | 2013-02-22 18:18:59 +0100 |
---|---|---|
committer | Arthur Vuillard <arthur.vuillard@gmail.com> | 2013-02-22 18:18:59 +0100 |
commit | aaefa2ae9c49026ad434c7a19f53d834c817a226 (patch) | |
tree | 1472bf3c0f7bef39e87e4c00a8f4a4955e92c65d | |
parent | fdcd47987537ffdaaf94ae4091f750ecc8d13585 (diff) | |
download | webtest-aaefa2ae9c49026ad434c7a19f53d834c817a226.tar.gz |
Replaced assert by unittest's asserts
-rw-r--r-- | tests/test_forms.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_forms.py b/tests/test_forms.py index 534ef3e..c31a8fc 100644 --- a/tests/test_forms.py +++ b/tests/test_forms.py @@ -60,7 +60,9 @@ class TestForms(unittest.TestCase): form = webtest.Form(None, PAGE_CONTENT) form.select('select', 'value1') - assert form['select'].value == 'value1' + self.assertEqual(form['select'].value, 'value1', + "when using form.select, the input selected value should be " + "changed") def test_get_field_by_index(self): form = webtest.Form(None, PAGE_CONTENT) |