390
390
def test_update_with_data(self):
391
391
image_data = StringIO.StringIO('XXX')
392
392
self.mgr.update('1', data=image_data)
394
394
expect = [('PUT', '/v1/images/1', expect_headers, image_data)]
395
395
self.assertEqual(self.api.calls, expect)