From 26087994392cba3543a801114debbb4640bb6043 Mon Sep 17 00:00:00 2001 From: Nicolas Delaby Date: Fri, 13 Nov 2015 10:20:09 +0100 Subject: [PATCH] Checked DateTimeTZRange/DateRange conversion in postgres_tests. --- tests/postgres_tests/test_ranges.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/postgres_tests/test_ranges.py b/tests/postgres_tests/test_ranges.py index bde949d218..956a6c61d9 100644 --- a/tests/postgres_tests/test_ranges.py +++ b/tests/postgres_tests/test_ranges.py @@ -322,6 +322,8 @@ class TestSerialization(TestCase): self.assertEqual(instance.ints, NumericRange(0, 10)) self.assertEqual(instance.floats, NumericRange(empty=True)) 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):