summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSampath Priyankara <sam47priya@gmail.com>2017-09-07 10:25:30 +0900
committerSampath Priyankara <sam47priya@gmail.com>2017-09-07 10:36:39 +0900
commitd9c87bba0adc3f27b90d8309381c3f1445ba7bf1 (patch)
tree0f1b2565024156aeea46721bbb93670271459640
parent93556d3116eb8c62bf881da0edd05692c9ebd66e (diff)
iso8601.is8601.Utc No Longer Exists
iso8601.UTC is correct datetime UTC field object. iso8601 >= 0.1.12 includes only iso8601.UTC for python3 while both UTC and Utc() for python2. Less then 0.1.12 included both UTC and Utc() for both python2/3. Change-Id: I9b2a8ba5a5ab44c95e68d67e0e3ee8e2c0024b03 Closes-Bug: #1715486
Notes
Notes (review): Verified+1: Jenkins Code-Review+2: Rikimaru Honjo <honjo.rikimaru@po.ntt-tx.co.jp> Workflow+1: Tushar Patil <tushar.vitthal.patil@gmail.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Fri, 29 Sep 2017 04:46:44 +0000 Reviewed-on: https://review.openstack.org/501515 Project: openstack/masakari Branch: refs/heads/master
-rw-r--r--masakari/tests/unit/objects/test_fields.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/masakari/tests/unit/objects/test_fields.py b/masakari/tests/unit/objects/test_fields.py
index dbdc6de..15dc425 100644
--- a/masakari/tests/unit/objects/test_fields.py
+++ b/masakari/tests/unit/objects/test_fields.py
@@ -211,7 +211,7 @@ class TestBoolean(TestField):
211class TestDateTime(TestField): 211class TestDateTime(TestField):
212 def setUp(self): 212 def setUp(self):
213 super(TestDateTime, self).setUp() 213 super(TestDateTime, self).setUp()
214 self.dt = datetime.datetime(2016, 11, 5, tzinfo=iso8601.iso8601.Utc()) 214 self.dt = datetime.datetime(2016, 11, 5, tzinfo=iso8601.UTC)
215 self.field = fields.DateTimeField() 215 self.field = fields.DateTimeField()
216 self.coerce_good_values = [(self.dt, self.dt), 216 self.coerce_good_values = [(self.dt, self.dt),
217 (utils.isotime(self.dt), self.dt)] 217 (utils.isotime(self.dt), self.dt)]
@@ -224,4 +224,4 @@ class TestDateTime(TestField):
224 '2016-11-05T18:00:00Z', 224 '2016-11-05T18:00:00Z',
225 self.field.stringify( 225 self.field.stringify(
226 datetime.datetime(2016, 11, 5, 18, 0, 0, 226 datetime.datetime(2016, 11, 5, 18, 0, 0,
227 tzinfo=iso8601.iso8601.Utc()))) 227 tzinfo=iso8601.iso8601.UTC)))