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
This commit is contained in:
Sampath Priyankara 2017-09-07 10:31:07 +09:00
parent e21b1e3cd2
commit 1ae1a61a34
1 changed files with 3 additions and 4 deletions

View File

@ -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='')
]