diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2015-06-18 04:16:42 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2015-06-18 04:16:42 +0200 |
commit | 0d2b1107da973a8b0d3754e6196d7b241779da81 (patch) | |
tree | d420631df8470942d2ce7ab63e909ebdd746a017 /archaeological_operations/tests.py | |
parent | 7be19ec387e86dc08074b0b9728c3b0819d10053 (diff) | |
parent | 1dd34cabdccaec51c2b7b06099c66a068ff58aae (diff) | |
download | Ishtar-0d2b1107da973a8b0d3754e6196d7b241779da81.tar.bz2 Ishtar-0d2b1107da973a8b0d3754e6196d7b241779da81.zip |
Merge branch 'stable'
Diffstat (limited to 'archaeological_operations/tests.py')
-rw-r--r-- | archaeological_operations/tests.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/archaeological_operations/tests.py b/archaeological_operations/tests.py index 484e2b259..bbe92b3c8 100644 --- a/archaeological_operations/tests.py +++ b/archaeological_operations/tests.py @@ -162,8 +162,11 @@ class ImportOperationTest(TestCase): sorted([p.section for p in last_parcels])) last_ope = models.Operation.objects.order_by('-pk').all()[0] towns_ope = last_ope.towns.all() + imported = [imp for acc, imp in impt.get_all_imported()] for p in last_parcels: self.assertTrue(p.town in towns_ope) + self.assertTrue(p in imported) + self.assertEqual(len(imported), len(last_parcels)) self.assertEqual(models.Parcel.objects.get(parcel_number='55', section='YY').external_id, 'YY55') |