Skip to content

Commit

Permalink
Check images by ids, not by count. lp#1088515
Browse files Browse the repository at this point in the history
Change-Id: I0ec2d06615f1fff834c72599847e39a01678529f
  • Loading branch information
Jaroslav Henner committed Dec 13, 2012
1 parent af6fca5 commit 72604c5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tempest/tests/image/test_images.py
Expand Up @@ -141,7 +141,6 @@ def setUpClass(cls):
cls.os = openstack.ServiceManager()
cls.client = cls.os.images.get_client()
cls.created_images = []
cls.original_images = list(cls.client.images.list())

# We add a few images here to test the listing functionality of
# the images API
Expand Down Expand Up @@ -198,5 +197,5 @@ def test_index_no_params(self):
"""
Simple test to see all fixture images returned
"""
images = list(self.client.images.list())
self.assertEqual(10, len(images) - len(self.original_images))
current_images = set(i.id for i in self.client.images.list())
self.assertTrue(set(self.created_images) <= current_images)

0 comments on commit 72604c5

Please sign in to comment.