'Tests that the registry API returns list of public images.
Must be sorted alphabetically by name in ascending order.'

def test_get_index_sort_name_asc(self):

    UUID3 = _gen_uuid()
    extra_fixture = self.get_fixture(id=UUID3, name='asdf')
    db_api.image_create(self.context, extra_fixture)
    UUID4 = _gen_uuid()
    extra_fixture = self.get_fixture(id=UUID4, name='xyz')
    db_api.image_create(self.context, extra_fixture)
    images = self.client.image_get_all(sort_key=['name'], sort_dir=['asc'])
    self.assertEqualImages(images, (UUID3, UUID1, UUID2, UUID4), unjsonify=False)
