diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2015-06-17 02:41:03 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2015-06-17 02:41:03 +0200 |
commit | 13d8f07c11f19b96678442571317162f868eff4a (patch) | |
tree | 42983cf4fc100c70a1e22b3cf20f3b492eab94ed /archaeological_operations/tests.py | |
parent | a373fe1eda73658259bff54a0eab3a922c10c74b (diff) | |
parent | e803c522a72359685080f41c01fcd8e66197e498 (diff) | |
download | Ishtar-13d8f07c11f19b96678442571317162f868eff4a.tar.bz2 Ishtar-13d8f07c11f19b96678442571317162f868eff4a.zip |
Merge branch 'stable'
Diffstat (limited to 'archaeological_operations/tests.py')
-rw-r--r-- | archaeological_operations/tests.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/archaeological_operations/tests.py b/archaeological_operations/tests.py index 2ec79279e..c7e75da1b 100644 --- a/archaeological_operations/tests.py +++ b/archaeological_operations/tests.py @@ -156,6 +156,10 @@ class ImportOperationTest(TestCase): sorted([p.parcel_number for p in last_parcels])) self.assertEqual(sections, sorted([p.section for p in last_parcels])) + last_ope = models.Operation.objects.order_by('-pk').all()[0] + towns_ope = last_ope.towns.all() + for p in last_parcels: + self.assertTrue(p.town in towns_ope) def testParseParcels(self): |