diff options
| author | Étienne Loks <etienne.loks@proxience.com> | 2015-06-18 05:09:18 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@proxience.com> | 2015-06-18 05:09:18 +0200 |
| commit | 8e30954860d4fef23885732a387903d476545900 (patch) | |
| tree | b319e3f9cee6ae766f011eeb564a110828ec4627 /archaeological_operations/tests.py | |
| parent | 0d2b1107da973a8b0d3754e6196d7b241779da81 (diff) | |
| parent | 4c56faeaeda75e952b410465aefb0534549dfc95 (diff) | |
| download | Ishtar-8e30954860d4fef23885732a387903d476545900.tar.bz2 Ishtar-8e30954860d4fef23885732a387903d476545900.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 bbe92b3c8..9abc62bd4 100644 --- a/archaeological_operations/tests.py +++ b/archaeological_operations/tests.py @@ -170,6 +170,10 @@ class ImportOperationTest(TestCase): self.assertEqual(models.Parcel.objects.get(parcel_number='55', section='YY').external_id, 'YY55') + # delete associated parcel with the import deletion + parcel_count = models.Parcel.objects.count() + impt.delete() + self.assertEqual(parcel_count-2, models.Parcel.objects.count()) def testParseParcels(self): |
