raise Exception instead of str (#3322)

This commit is contained in:
Tao Qian
2016-07-20 05:06:48 -07:00
committed by wing328
parent bee6803bcb
commit 8818cf9ff4

View File

@@ -196,7 +196,7 @@ class PetApiTests(unittest.TestCase):
try:
self.pet_api.get_pet_by_id(pet_id=self.pet.id)
raise "expected an error"
raise Exception("expected an error")
except ApiException as e:
self.assertEqual(404, e.status)