@@ -1041,11 +1041,12 @@ def test_storage_class(self):
10411041
10421042 def test_time_deleted (self ):
10431043 import datetime
1044+ from gcloud ._helpers import _RFC3339_MICROS
10441045 BLOB_NAME = 'blob-name'
10451046 connection = _Connection ()
10461047 bucket = _Bucket (connection )
10471048 TIMESTAMP = datetime .datetime (2014 , 11 , 5 , 20 , 34 , 37 )
1048- TIME_DELETED = TIMESTAMP .isoformat () + '.000Z'
1049+ TIME_DELETED = TIMESTAMP .strftime ( _RFC3339_MICROS )
10491050 properties = {'timeDeleted' : TIME_DELETED }
10501051 blob = self ._makeOne (BLOB_NAME , bucket = bucket , properties = properties )
10511052 self .assertEqual (blob .time_deleted , TIMESTAMP )
@@ -1057,11 +1058,12 @@ def test_time_deleted_unset(self):
10571058
10581059 def test_updated (self ):
10591060 import datetime
1061+ from gcloud ._helpers import _RFC3339_MICROS
10601062 BLOB_NAME = 'blob-name'
10611063 connection = _Connection ()
10621064 bucket = _Bucket (connection )
10631065 TIMESTAMP = datetime .datetime (2014 , 11 , 5 , 20 , 34 , 37 )
1064- UPDATED = TIMESTAMP .isoformat () + '.000Z'
1066+ UPDATED = TIMESTAMP .strftime ( _RFC3339_MICROS )
10651067 properties = {'updated' : UPDATED }
10661068 blob = self ._makeOne (BLOB_NAME , bucket = bucket , properties = properties )
10671069 self .assertEqual (blob .updated , TIMESTAMP )
0 commit comments