'Tests that the /images POST registry API creates the image'

def test_create_image_with_min_ram(self):

    fixture = self.get_minimal_fixture(min_ram=256)
    body = jsonutils.dump_as_bytes(dict(image=fixture))
    res = self.get_api_response_ext(http.OK, body=body, method='POST', content_type='json')
    res_dict = jsonutils.loads(res.body)
    self.assertEqual(256, res_dict['image']['min_ram'])
