diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-02-17 21:29:07 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-02-17 21:29:07 +0100 |
commit | fdcc60ea575ad25994f12a8d31b8a323f22538d4 (patch) | |
tree | 204e0afa8e852b0fc494bfe90b4d947498860dc6 /archaeological_context_records/tests.py | |
parent | dd642af1a1e8ad43b6c072a9ec73e4275aa29eab (diff) | |
parent | fb67f2224a60d19380c6db682499af76a9667d35 (diff) | |
download | Ishtar-fdcc60ea575ad25994f12a8d31b8a323f22538d4.tar.bz2 Ishtar-fdcc60ea575ad25994f12a8d31b8a323f22538d4.zip |
Merge branch 'v0.9' into wheezy
Diffstat (limited to 'archaeological_context_records/tests.py')
-rw-r--r-- | archaeological_context_records/tests.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/archaeological_context_records/tests.py b/archaeological_context_records/tests.py index f1e6581d7..1c900184c 100644 --- a/archaeological_context_records/tests.py +++ b/archaeological_context_records/tests.py @@ -88,8 +88,9 @@ class ImportContextRecordTest(ImportTest, TestCase): self.init_cr_targetkey(impt) # Dating is not in models that can be created but force new is # set for a column that references Dating - with self.assertRaises(ImproperlyConfigured): - impt.importation() + impt.importation() + self.assertEqual(len(impt.errors), 4) + self.assertIn("doesn't exist in the database.", impt.errors[0]['error']) # retry with only Dating (no context record) for cr in models.ContextRecord.objects.all(): |