summaryrefslogtreecommitdiff
path: root/ishtar_common/tests.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-10-26 20:58:21 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-10-26 20:58:21 +0200
commitb6676aa6ad94739743ac613e2f19a8b29b9705eb (patch)
treea3d98f35885d9a5d20d9eb4004eb16b131edfd20 /ishtar_common/tests.py
parent5fb235649207a15f54c69f3ac9c2f0659fc2436d (diff)
downloadIshtar-b6676aa6ad94739743ac613e2f19a8b29b9705eb.tar.bz2
Ishtar-b6676aa6ad94739743ac613e2f19a8b29b9705eb.zip
Command: import geofla csv
Diffstat (limited to 'ishtar_common/tests.py')
-rw-r--r--ishtar_common/tests.py8
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):
"""