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:
committed by
Tim Graham
parent
40768ec29d
commit
d91321e8be
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user