Replaced all occurences of e.message with str(e)

Signed-off-by: Schnuffle  <schnuffle@github.com>
This commit is contained in:
Schnuffle 2018-09-27 13:38:50 +02:00
parent 2c695fd1aa
commit dc5db01ff2
18 changed files with 19 additions and 19 deletions

View file

@ -121,7 +121,7 @@ class TestCase(unittest.TestCase):
try:
self.assertEquals(attrs[key], getattr(obj, key))
except AssertionError as e:
raise (type(e))(e.message + " for '.%s'" % key)
raise (type(e))(str(e) + " for '.%s'" % key)
def assert_dict(self, required, actual):
"""Does a partial assert of a dict.