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

def test_get_image_details_with_maximum_size(self):

    extra_fixture = self.get_fixture(id=_gen_uuid(), status='saving', size=21)
    db_api.image_create(self.context, extra_fixture)
    images = self.client.get_images_detailed(filters={'size_max': 20})
    self.assertEqual(1, len(images))
    for image in images:
        self.assertLessEqual(image['size'], 20)
