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

Used assertIsInstance in tests.

This commit is contained in:
Alasdair Nicol
2015-04-27 10:51:46 +01:00
committed by Tim Graham
parent 40768ec29d
commit d91321e8be
7 changed files with 15 additions and 14 deletions

View File

@@ -93,4 +93,5 @@ class DataTypesTestCase(TestCase):
self.assertIsInstance(b.baked_timestamp, datetime.datetime)
# We need to test this way because datetime.datetime inherits
# from datetime.date:
self.assertIsInstance(b.baked_date, datetime.date) and not isinstance(b.baked_date, datetime.datetime)
self.assertIsInstance(b.baked_date, datetime.date)
self.assertNotIsInstance(b.baked_date, datetime.datetime)