'Tests that a detailed call can be filtered by a property'

def test_get_image_details_by_property(self):

    extra_fixture = self.get_fixture(id=_gen_uuid(), status='saving', properties={'p    a': 'v    a'})
    db_api.image_create(self.context, extra_fixture)
    filters = {'property-p    a': 'v    a'}
    images = self.client.get_images_detailed(filters=filters)
    self.assertEqual(1, len(images))
    for image in images:
        self.assertEqual('v    a', image['properties']['p    a'])
