From 1ae1a61a34179ca6d028d43498351214db9ef60a Mon Sep 17 00:00:00 2001 From: Sampath Priyankara Date: Thu, 7 Sep 2017 10:31:07 +0900 Subject: [PATCH] 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: I53de9164d17551fb08fa5eb554856a9aa3aafec6 Closes-Bug: #1715486 --- senlin/tests/unit/api/openstack/v1/test_services.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/senlin/tests/unit/api/openstack/v1/test_services.py b/senlin/tests/unit/api/openstack/v1/test_services.py index 35d713b80..5d7042192 100644 --- a/senlin/tests/unit/api/openstack/v1/test_services.py +++ b/senlin/tests/unit/api/openstack/v1/test_services.py @@ -12,10 +12,9 @@ # under the License. import datetime +import iso8601 import mock -from iso8601 import iso8601 - from senlin.api.openstack.v1 import services from senlin.common import policy from senlin.objects import service as service_obj @@ -30,9 +29,9 @@ fake_services_list = [ disabled=False, topic='senlin-engine', updated_at=datetime.datetime(2012, 10, 29, 13, 42, 11, - tzinfo=iso8601.Utc()), + tzinfo=iso8601.UTC), created_at=datetime.datetime(2014, 10, 29, 13, 42, 11, - tzinfo=iso8601.Utc()), + tzinfo=iso8601.UTC), disabled_reason='') ]