fix test for python 3

This commit is contained in:
Itai Shirav 2018-08-19 18:19:01 +03:00
parent acf2f7a189
commit 378cae88bc

View File

@ -61,7 +61,7 @@ class ReadonlyTestCase(TestCaseWithData):
def test_nonexisting_readonly_database(self):
with self.assertRaises(DatabaseException) as cm:
db = Database('dummy', readonly=True)
self.assertEqual(cm.exception.message, 'Database does not exist, and cannot be created under readonly connection')
self.assertEqual(str(cm.exception), 'Database does not exist, and cannot be created under readonly connection')
class ReadOnlyModel(Model):