Skip to content

Commit

Permalink
Bug lp:829654
Browse files Browse the repository at this point in the history
Assert was not actually validating return data from api query.

Change-Id: I2db2863c749bfabba201ae2d733330b7a71bef2d
  • Loading branch information
Justin Shepherd committed Aug 24, 2011
1 parent 3554d5a commit 57cbac0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions glance/tests/functional/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def test_get_head_simple_post(self):
image = json.loads(content)

for expected_key, expected_value in expected_image.items():
self.assertEqual(expected_value, expected_image[expected_key],
self.assertEqual(expected_value, image['images'][0][expected_key],
"For key '%s' expected header value '%s'. Got '%s'"
% (expected_key,
expected_value,
Expand Down Expand Up @@ -235,7 +235,7 @@ def test_get_head_simple_post(self):
image = json.loads(content)

for expected_key, expected_value in expected_image.items():
self.assertEqual(expected_value, expected_image[expected_key],
self.assertEqual(expected_value, image['images'][0][expected_key],
"For key '%s' expected header value '%s'. Got '%s'"
% (expected_key,
expected_value,
Expand Down

0 comments on commit 57cbac0

Please sign in to comment.