From 8c55088a3f42caf2415b34872da38d493b1f2042 Mon Sep 17 00:00:00 2001 From: azul Date: Mon, 14 Aug 2017 07:04:42 +0000 Subject: [tests] pep8 test_gateways.py tests were failing because of pep8 issues --- tests/unit/vpn/test_gateways.py | 23 +++++++++++++++++------ 1 file 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'] -- cgit v1.2.3