summaryrefslogtreecommitdiff
path: root/archaeological_operations/tests.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-08-18 13:44:22 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-08-18 13:44:22 +0200
commit6c40a1c20aecdd826760bc5ab87c20dc2ea9f40b (patch)
tree838b2a369a6b10261bb8269366ae5666cb62ecaf /archaeological_operations/tests.py
parentd3183ca243377637f84f74862f2b2660a4364198 (diff)
downloadIshtar-6c40a1c20aecdd826760bc5ab87c20dc2ea9f40b.tar.bz2
Ishtar-6c40a1c20aecdd826760bc5ab87c20dc2ea9f40b.zip
Manage operation relation types in context record and find searches (refs #2799)
Diffstat (limited to 'archaeological_operations/tests.py')
-rw-r--r--archaeological_operations/tests.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/archaeological_operations/tests.py b/archaeological_operations/tests.py
index a7ca114f0..2bf3a6691 100644
--- a/archaeological_operations/tests.py
+++ b/archaeological_operations/tests.py
@@ -467,11 +467,10 @@ class OperationInitTest(object):
return self.towns
def get_default_town(self):
- town = getattr(self, 'towns', None)
- if not town:
+ towns = getattr(self, 'towns', None)
+ if not towns:
self.create_towns()
- town = self.towns[0]
- return town
+ return self.towns[0]
def create_parcel(self, data={}):
default = {'town': self.get_default_town(),