summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-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 ##########################################################