summaryrefslogtreecommitdiff
path: root/archaeological_operations/tests.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2015-06-17 02:40:01 +0200
committerÉtienne Loks <etienne.loks@proxience.com>2015-06-17 02:40:01 +0200
commitc85ee3fcb5b594fc4634a085e8fa59bbafd79ad1 (patch)
tree5329deebb75ad591bf2ea9a5af9ef5fce0f2b91a /archaeological_operations/tests.py
parentff26df85f5f325e63378b81f9cc89fe4f7a8f9c6 (diff)
downloadIshtar-c85ee3fcb5b594fc4634a085e8fa59bbafd79ad1.tar.bz2
Ishtar-c85ee3fcb5b594fc4634a085e8fa59bbafd79ad1.zip
Parcel: when associating a new town report it to operation and files
Diffstat (limited to 'archaeological_operations/tests.py')
-rw-r--r--archaeological_operations/tests.py4
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):