summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHonza Kral <honza.kral@gmail.com>2012-06-03 22:31:49 +0200
committerHonza Kral <honza.kral@gmail.com>2012-06-03 22:31:49 +0200
commit71d9a2a7fe8cfadec8a46d208a218786aff09107 (patch)
tree804c8ac3374b311f164df826ff6b55f1791704c6
parentf823ae3b3e835dd4abdb987ea0fcc22573bb308d (diff)
Unittest2 style assertTrue instead of assert_
-rw-r--r--tests/regressiontests/forms/tests/fields.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/regressiontests/forms/tests/fields.py b/tests/regressiontests/forms/tests/fields.py
index 590fb01682..9800cfb879 100644
--- a/tests/regressiontests/forms/tests/fields.py
+++ b/tests/regressiontests/forms/tests/fields.py
@@ -994,7 +994,7 @@ class FieldsTests(SimpleTestCase):
]
for exp, got in zip(expected, fix_os_paths(f.choices)):
self.assertEqual(exp[1], got[1])
- self.assert_(got[0].endswith(exp[0]))
+ self.assertTrue(got[0].endswith(exp[0]))
f = FilePathField(path=path, allow_folders=True, allow_files=True)
f.choices.sort()
@@ -1017,7 +1017,7 @@ class FieldsTests(SimpleTestCase):
]
for exp, got in zip(expected, fix_os_paths(f.choices)):
self.assertEqual(exp[1], got[1])
- self.assert_(got[0].endswith(exp[0]))
+ self.assertTrue(got[0].endswith(exp[0]))
# SplitDateTimeField ##########################################################