Commit dd0baed8 authored by Xiaowu Zhang's avatar Xiaowu Zhang

test_registry_client: use unit test method instead of raise

parent c099ab2f
......@@ -68,7 +68,7 @@ class TestRegistryClientInteract(unittest.TestCase):
if token:
break
else:
raise Exception("Request token failed, no token in database")
self.fail("Request token failed, no token in database")
# token: tuple[unicode,]
token = str(token[0])
self.assertEqual(client.isToken(token), "1")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment