summaryrefslogtreecommitdiff
path: root/archaeological_context_records/tests.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-03-21 23:59:27 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-03-21 23:59:27 +0100
commitb8cf790377a2ece768ea19bd1d216fdf0ee78cda (patch)
treeb72020ae9a2cee74a3060fc17495f445aa414e0e /archaeological_context_records/tests.py
parent456b74ac295815970483871cf2575863bc97dd6f (diff)
parent88fde9b54bd94e582fa4f8886463eda2e39ceb46 (diff)
downloadIshtar-b8cf790377a2ece768ea19bd1d216fdf0ee78cda.tar.bz2
Ishtar-b8cf790377a2ece768ea19bd1d216fdf0ee78cda.zip
Merge branch 'v0.9' into wheezy
Diffstat (limited to 'archaeological_context_records/tests.py')
-rw-r--r--archaeological_context_records/tests.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/archaeological_context_records/tests.py b/archaeological_context_records/tests.py
index c9795fce7..6bb293e4d 100644
--- a/archaeological_context_records/tests.py
+++ b/archaeological_context_records/tests.py
@@ -92,7 +92,10 @@ class ImportContextRecordTest(ImportTest, TestCase):
# set for a column that references Dating
impt.importation()
self.assertEqual(len(impt.errors), 4)
- self.assertIn("doesn't exist in the database.", impt.errors[0]['error'])
+ self.assertTrue(
+ "doesn't exist in the database." in impt.errors[0]['error'] or
+ "n'existe pas dans la base" in impt.errors[0]['error']
+ )
# retry with only Dating (no context record)
for cr in models.ContextRecord.objects.all():