Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Unittest2 style assertTrue instead of assert_

  • Loading branch information...
commit 71d9a2a7fe8cfadec8a46d208a218786aff09107 1 parent f823ae3
Honza Král HonzaKral authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/regressiontests/forms/tests/fields.py
4 tests/regressiontests/forms/tests/fields.py
View
@@ -994,7 +994,7 @@ def test_filepathfield_folders(self):
]
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 @@ def test_filepathfield_folders(self):
]
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 ##########################################################
Please sign in to comment.
Something went wrong with that request. Please try again.