Skip to content

Commit

Permalink
Don't use for loop in service catalog test
Browse files Browse the repository at this point in the history
  • Loading branch information
cyli committed Jul 17, 2014
1 parent af52bdf commit e62e4ec
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions mimic/test/test_auth.py
Expand Up @@ -288,11 +288,10 @@ def test_response_service_catalog_has_base_uri(self):
urls = [
endpoint['publicURL'] for endpoint in services[0]['endpoints']
]

for url in urls:
self.assertTrue(url.startswith('http://mybase/'),
'{0} does not start with "http://mybase"'
.format(url))
self.assertEqual(1, len(urls))
self.assertTrue(urls[0].startswith('http://mybase/'),
'{0} does not start with "http://mybase"'
.format(urls[0]))


class GetEndpointsForTokenTests(SynchronousTestCase):
Expand Down

0 comments on commit e62e4ec

Please sign in to comment.