Unittest2 style assertTrue instead of assert_

This commit is contained in:
Honza Kral 2012-06-03 22:31:49 +02:00
parent f823ae3b3e
commit 71d9a2a7fe
1 changed files with 2 additions and 2 deletions

View File

@ -994,7 +994,7 @@ class FieldsTests(SimpleTestCase):
] ]
for exp, got in zip(expected, fix_os_paths(f.choices)): for exp, got in zip(expected, fix_os_paths(f.choices)):
self.assertEqual(exp[1], got[1]) 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 = FilePathField(path=path, allow_folders=True, allow_files=True)
f.choices.sort() f.choices.sort()
@ -1017,7 +1017,7 @@ class FieldsTests(SimpleTestCase):
] ]
for exp, got in zip(expected, fix_os_paths(f.choices)): for exp, got in zip(expected, fix_os_paths(f.choices)):
self.assertEqual(exp[1], got[1]) self.assertEqual(exp[1], got[1])
self.assert_(got[0].endswith(exp[0])) self.assertTrue(got[0].endswith(exp[0]))
# SplitDateTimeField ########################################################## # SplitDateTimeField ##########################################################