Checked DateTimeTZRange/DateRange conversion in postgres_tests.

This commit is contained in:
Nicolas Delaby 2015-11-13 10:20:09 +01:00 committed by Tim Graham
parent a32538279c
commit 2608799439
1 changed files with 2 additions and 0 deletions

View File

@ -322,6 +322,8 @@ class TestSerialization(TestCase):
self.assertEqual(instance.ints, NumericRange(0, 10)) self.assertEqual(instance.ints, NumericRange(0, 10))
self.assertEqual(instance.floats, NumericRange(empty=True)) self.assertEqual(instance.floats, NumericRange(empty=True))
self.assertEqual(instance.bigints, None) self.assertEqual(instance.bigints, None)
self.assertEqual(instance.dates, DateRange(self.lower_date, self.upper_date))
self.assertEqual(instance.timestamps, DateTimeTZRange(self.lower_dt, self.upper_dt))
class TestValidators(PostgreSQLTestCase): class TestValidators(PostgreSQLTestCase):