summaryrefslogtreecommitdiff
path: root/archaeological_operations/tests.py
diff options
context:
space:
mode:
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(),