'Tests the createImage API with the 2.45 microversion which
does not return the Location header, it returns a json dict in the
response body with an image_id key.'

def test_create_image(self):

    s = self.cs.servers.get(1234)
    im = s.create_image('123')
    self.assertEqual('456', im)
    self.assert_request_id(im, fakes.FAKE_REQUEST_ID_LIST)
    self.assert_called('POST', '/servers/1234/action')
    im = s.create_image('123', {})
    self.assert_request_id(im, fakes.FAKE_REQUEST_ID_LIST)
    self.assert_called('POST', '/servers/1234/action')
    im = self.cs.servers.create_image(s, '123')
    self.assert_request_id(im, fakes.FAKE_REQUEST_ID_LIST)
    self.assert_called('POST', '/servers/1234/action')
    im = self.cs.servers.create_image(s, '123', {})
    self.assert_request_id(im, fakes.FAKE_REQUEST_ID_LIST)
    self.assert_called('POST', '/servers/1234/action')
