'Tests that we can add image metadata with properties'

def test_image_create_with_properties(self):

    fixture = self.get_fixture(location='file:///tmp/glance-tests/2', properties={'distro': 'Ubuntu    10.04    LTS'})
    new_image = self.client.image_create(values=fixture)
    self.assertIn('properties', new_image)
    self.assertEqual(new_image['properties'][0]['value'], fixture['properties']['distro'])
    del fixture['location']
    del fixture['properties']
    for (k, v) in fixture.items():
        self.assertEqual(v, new_image[k])
    self.assertIn('status', new_image.keys())
    self.assertEqual('active', new_image['status'])
