@@ -1016,11 +1016,12 @@ def test_storage_class(self):
10161016
10171017 def test_time_deleted (self ):
10181018 import datetime
1019+ from gcloud ._helpers import _RFC3339_MICROS
10191020 BLOB_NAME = 'blob-name'
10201021 connection = _Connection ()
10211022 bucket = _Bucket (connection )
10221023 TIMESTAMP = datetime .datetime (2014 , 11 , 5 , 20 , 34 , 37 )
1023- TIME_DELETED = TIMESTAMP .isoformat () + '.000Z'
1024+ TIME_DELETED = TIMESTAMP .strftime ( _RFC3339_MICROS )
10241025 properties = {'timeDeleted' : TIME_DELETED }
10251026 blob = self ._makeOne (BLOB_NAME , bucket = bucket , properties = properties )
10261027 self .assertEqual (blob .time_deleted , TIMESTAMP )
@@ -1032,11 +1033,12 @@ def test_time_deleted_unset(self):
10321033
10331034 def test_updated (self ):
10341035 import datetime
1036+ from gcloud ._helpers import _RFC3339_MICROS
10351037 BLOB_NAME = 'blob-name'
10361038 connection = _Connection ()
10371039 bucket = _Bucket (connection )
10381040 TIMESTAMP = datetime .datetime (2014 , 11 , 5 , 20 , 34 , 37 )
1039- UPDATED = TIMESTAMP .isoformat () + '.000Z'
1041+ UPDATED = TIMESTAMP .strftime ( _RFC3339_MICROS )
10401042 properties = {'updated' : UPDATED }
10411043 blob = self ._makeOne (BLOB_NAME , bucket = bucket , properties = properties )
10421044 self .assertEqual (blob .updated , TIMESTAMP )
0 commit comments