summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2013-05-10 14:15:44 -0700
committerScott Moser <smoser@ubuntu.com>2013-05-10 14:15:44 -0700
commit4d83822985bc45dacd611859d76aa5cc3e35e3bc (patch)
tree75f6aeb004bf0b6635893c698bf29aa31c2e58e9 /tests
parent670b46d151477d32056f3fa4eb968c7960f3b472 (diff)
downloadvyos-cloud-init-4d83822985bc45dacd611859d76aa5cc3e35e3bc.tar.gz
vyos-cloud-init-4d83822985bc45dacd611859d76aa5cc3e35e3bc.zip
fix pep8
Diffstat (limited to 'tests')
-rw-r--r--tests/unittests/test_merging.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unittests/test_merging.py b/tests/unittests/test_merging.py
index ba1c67d7..4c28f955 100644
--- a/tests/unittests/test_merging.py
+++ b/tests/unittests/test_merging.py
@@ -42,7 +42,7 @@ def _old_mergemanydict(*args):
def _random_str(rand):
base = ''
- for _i in xrange(rand.randint(1, 2**8)):
+ for _i in xrange(rand.randint(1, 2 ** 8)):
base += rand.choice(string.letters + string.digits)
return base
@@ -82,7 +82,7 @@ def _make_dict(current_depth, max_depth, rand):
if t in [tuple]:
base = tuple(base)
elif t in [long, int]:
- base = rand.randint(0, 2**8)
+ base = rand.randint(0, 2 ** 8)
elif t in [str]:
base = _random_str(rand)
return base