Use newer location for iso8601 UTC

Newer versions have moved from iso8601.iso8601.Utc() to
just iso8601.UTC, causing tests to fail under py35.

Change-Id: I387c85f649316b26109eb1bc21da5ce24c450852
Closes-bug: #1715486
This commit is contained in:
Sean McGinnis 2017-09-06 16:51:12 -05:00
parent b10f8bc69a
commit a63d4bafdb
1 changed files with 3 additions and 3 deletions

View File

@ -31,11 +31,11 @@ def stub_message(id, **kwargs):
'resource_type': message_field.Resource.SHARE,
'resource_id': 'fake_uuid',
'updated_at': datetime.datetime(1900, 1, 1, 1, 1, 1,
tzinfo=iso8601.iso8601.Utc()),
tzinfo=iso8601.UTC),
'created_at': datetime.datetime(1900, 1, 1, 1, 1, 1,
tzinfo=iso8601.iso8601.Utc()),
tzinfo=iso8601.UTC),
'expires_at': datetime.datetime(1900, 1, 1, 1, 1, 1,
tzinfo=iso8601.iso8601.Utc()),
tzinfo=iso8601.UTC),
'detail_id': message_field.Detail.NO_VALID_HOST[0],
}