def test__get_writable_metadata_unwritable_field(self):
    name = u'blob-name'
    properties = {'updated': '2016-10-16T18:18:18.181Z'}
    blob = self._make_one(name, bucket=None, properties=properties)
    blob._changes.add('updated')
    object_metadata = blob._get_writable_metadata()
    expected = {'name': name}
    self.assertEqual(object_metadata, expected)
def test__get_writable_metadata_unwritable_field(self):
    name = u'blob-name'
    properties = {'updated': '2016-10-16T18:18:18.181Z'}
    blob = self._make_one(name, bucket=None, properties=properties)
    blob._changes.add('updated')
    object_metadata = blob._get_writable_metadata()
    expected = {'name': name}
    self.assertEqual(object_metadata, expected)