mirror of
https://github.com/django/django.git
synced 2025-11-25 21:22:14 +00:00
Used assertIsInstance in tests.
This commit is contained in:
parent
40768ec29d
commit
d91321e8be
7 changed files with 15 additions and 14 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue