summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorazul <azul@riseup.net>2017-08-14 07:04:42 +0000
committerAzul <azul@riseup.net>2017-08-14 09:30:25 +0200
commit8c55088a3f42caf2415b34872da38d493b1f2042 (patch)
tree57fd0a74362ab888423eb8bfa60f6bca1be5006e /tests/unit
parent002878b1a1d9ab241b1ba5c6e77c8656bcc6fc38 (diff)
[tests] pep8 test_gateways.py
tests were failing because of pep8 issues
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/vpn/test_gateways.py23
1 files changed, 17 insertions, 6 deletions
diff --git a/tests/unit/vpn/test_gateways.py b/tests/unit/vpn/test_gateways.py
index 58b26761..d16e9103 100644
--- a/tests/unit/vpn/test_gateways.py
+++ b/tests/unit/vpn/test_gateways.py
@@ -141,7 +141,11 @@ class GatewaySelectorTestCase(unittest.TestCase):
ordered = selector.apply_user_preferences(pre)
locations = [x[0] for x in ordered]
# first the preferred location, then order by country
- assert locations == ['Montevideo', 'Rio de Janeiro', 'Cordoba', 'Seattle']
+ assert locations == [
+ 'Montevideo',
+ 'Rio de Janeiro',
+ 'Cordoba',
+ 'Seattle']
pre = [
('Seattle', '', ''),
@@ -150,8 +154,13 @@ class GatewaySelectorTestCase(unittest.TestCase):
('AnaRreS', '', '')]
ordered = selector.apply_user_preferences(pre)
locations = [x[0] for x in ordered]
- # first the preferred location, then order by country (test normalization)
- assert locations == ['AnaRreS', 'Paris, FR', 'Montevideo', 'Seattle']
+ # first the preferred location, then order by country
+ # (test normalization)
+ assert locations == [
+ 'AnaRreS',
+ 'Paris, FR',
+ 'Montevideo',
+ 'Seattle']
pre = [
('Rio De Janeiro', '', 'BR'),
@@ -161,6 +170,8 @@ class GatewaySelectorTestCase(unittest.TestCase):
ordered = selector.apply_user_preferences(pre)
locations = [x[0] for x in ordered]
# no matching location, order by country
- assert locations == ['Rio De Janeiro', 'Sao Paulo', 'Cordoba', 'Tacuarembo']
-
-
+ assert locations == [
+ 'Rio De Janeiro',
+ 'Sao Paulo',
+ 'Cordoba',
+ 'Tacuarembo']