Commit 71d9a2a7 authored by Honza Kral's avatar Honza Kral
Browse files

Unittest2 style assertTrue instead of assert_

parent f823ae3b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 ##########################################################