Used more specific test assertions.

This commit is contained in:
Aymeric Augustin 2014-04-09 22:20:22 +02:00
parent 11e7254c3d
commit 2791fbf59d
11 changed files with 19 additions and 20 deletions

View file

@ -298,7 +298,7 @@ class BooleanFieldTests(unittest.TestCase):
# conversions are applied with an offset
b5 = BooleanModel.objects.all().extra(
select={'string_col': 'string'})[0]
self.assertFalse(isinstance(b5.pk, bool))
self.assertNotIsInstance(b5.pk, bool)
def test_select_related(self):
"""