1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

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):
"""