def test_time_deleted(self):
    from google.cloud._helpers import _RFC3339_MICROS
    from google.cloud._helpers import UTC
    BLOB_NAME = 'blob-name'
    bucket = _Bucket()
    TIMESTAMP = datetime.datetime(2014, 11, 5, 20, 34, 37, tzinfo=UTC)
    TIME_DELETED = TIMESTAMP.strftime(_RFC3339_MICROS)
    properties = {'timeDeleted': TIME_DELETED}
    blob = self._make_one(BLOB_NAME, bucket=bucket, properties=properties)
    self.assertEqual(blob.time_deleted, TIMESTAMP)
def test_time_deleted(self):
    from google.cloud._helpers import _RFC3339_MICROS
    from google.cloud._helpers import UTC
    BLOB_NAME = 'blob-name'
    bucket = _Bucket()
    TIMESTAMP = datetime.datetime(2014, 11, 5, 20, 34, 37, tzinfo=UTC)
    TIME_DELETED = TIMESTAMP.strftime(_RFC3339_MICROS)
    properties = {'timeDeleted': TIME_DELETED}
    blob = self._make_one(BLOB_NAME, bucket=bucket, properties=properties)
    self.assertEqual(blob.time_deleted, TIMESTAMP)