'Tests that the /images registry API returns list of
public images sorted alphabetically by status in
descending order.'

def test_get_index_sort_status_desc(self):

    UUID3 = _gen_uuid()
    extra_fixture = self.get_fixture(id=UUID3, status='queued', size=19)
    db_api.image_create(self.context, extra_fixture)
    UUID4 = _gen_uuid()
    extra_fixture = self.get_fixture(id=UUID4)
    db_api.image_create(self.context, extra_fixture)
    res = self.get_api_response_ext(http.OK, url='/images?sort_key=status&sort_dir=desc')
    self.assertEqualImages(res, (UUID3, UUID4, UUID2))
