'Test correct number of images returned with limit param.'

def test_get_image_index_limit(self):

    extra_fixture = self.get_fixture(id=_gen_uuid(), status='saving')
    db_api.image_create(self.context, extra_fixture)
    extra_fixture = self.get_fixture(id=_gen_uuid(), status='saving')
    db_api.image_create(self.context, extra_fixture)
    images = self.client.get_images(limit=2)
    self.assertEqual(2, len(images))
