diff options
| author | Étienne Loks <etienne.loks@proxience.com> | 2015-06-18 03:17:34 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@proxience.com> | 2015-06-18 03:17:34 +0200 |
| commit | 3a3945de8c1a46dad216237b7f7bc770d813d6ba (patch) | |
| tree | 16a64af860503d1fd4ec601ba658dcaa2c19f536 /archaeological_operations/tests.py | |
| parent | 5d9f96733cb9184f2c3d20165dcd2330183f71e0 (diff) | |
| parent | d6c344d0f2ac8f7584b2a276d6d9e803326da4ff (diff) | |
| download | Ishtar-3a3945de8c1a46dad216237b7f7bc770d813d6ba.tar.bz2 Ishtar-3a3945de8c1a46dad216237b7f7bc770d813d6ba.zip | |
Merge branch 'stable'
Diffstat (limited to 'archaeological_operations/tests.py')
| -rw-r--r-- | archaeological_operations/tests.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/archaeological_operations/tests.py b/archaeological_operations/tests.py index 73f462895..484e2b259 100644 --- a/archaeological_operations/tests.py +++ b/archaeological_operations/tests.py @@ -151,7 +151,7 @@ class ImportOperationTest(TestCase): self.assertTrue(current_nb == (old_nb + 2)) # and well imported last_parcels = models.Parcel.objects.order_by('-pk').all()[0:2] - external_ids = sorted(['XXXX', 'YYYY']) + external_ids = sorted(['XXXX', 'YY55']) parcel_numbers = sorted(['42', '55']) sections = sorted(['ZX', 'YY']) self.assertEqual(external_ids, @@ -164,6 +164,9 @@ class ImportOperationTest(TestCase): towns_ope = last_ope.towns.all() for p in last_parcels: self.assertTrue(p.town in towns_ope) + self.assertEqual(models.Parcel.objects.get(parcel_number='55', + section='YY').external_id, + 'YY55') def testParseParcels(self): |
