diff options
-rw-r--r-- | chimere/tests.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/chimere/tests.py b/chimere/tests.py index f25bbfc..adf806b 100644 --- a/chimere/tests.py +++ b/chimere/tests.py @@ -136,8 +136,8 @@ class ImporterTest: continue self.assertEqual( nb, awaited_nb, - msg=u"%s: get test failed - got %d when %d was awaited" % - (unicode(self.__class__), nb, awaited_nb)) + msg=u"{}: get test failed - got {} when {} was awaited - {}" + .format(unicode(self.__class__), nb, awaited_nb, res)) self.assertEqual(nb_updated, 0) for cat in importer.categories.all(): if cat not in nb_by_cat: @@ -158,7 +158,10 @@ class ImporterTest: nb, nb_updated, res = importer.manager.get() if awaited_nb is None: continue - self.assertEqual(nb, 0) + self.assertEqual( + nb, 0, + msg=u"{}: update test failed - new items have been add" + .format(unicode(self.__class__))) # TODO: v3 - retablir overwrite """ # manage overwrite |