diff options
Diffstat (limited to 'ishtar_common/tests.py')
-rw-r--r-- | ishtar_common/tests.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ishtar_common/tests.py b/ishtar_common/tests.py index bbb449fe3..d882cd85b 100644 --- a/ishtar_common/tests.py +++ b/ishtar_common/tests.py @@ -107,6 +107,14 @@ class CommandsTestCase(TestCase): self.assertEqual(parcel_nb - 1, Parcel.objects.count()) self.assertEqual(Parcel.objects.filter(pk=p.pk).count(), 0) + def test_import_geofla(self): + town_nb = models.Town.objects.count() + out = StringIO() + call_command('import_geofla_csv', + '../ishtar_common/tests/geofla-test.csv', stdout=out) + self.assertEqual(town_nb + 9, models.Town.objects.count()) + + class WizardTestFormData(object): """ |