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

def test_image_get_is_public_v2(self):

    extra_fixture = self.get_fixture(id=_gen_uuid(), status='saving', properties={'is_public': 'avalue'})
    context = copy.copy(self.context)
    db_api.image_create(context, extra_fixture)
    filters = {'is_public': 'avalue'}
    images = self.client.image_get_all(filters=filters)
    self.assertEqual(1, len(images))
    for image in images:
        self.assertEqual('avalue', image['properties'][0]['value'])
