diff options
author | kali <kali@leap.se> | 2012-12-07 02:22:33 +0900 |
---|---|---|
committer | kali <kali@leap.se> | 2012-12-07 02:22:33 +0900 |
commit | 4c2f68b1158f3840f33a38a81a5fc03495d28466 (patch) | |
tree | fec0a56c64f1120aa064d824bc2427aa8ca91899 /src/leap/base/tests/test_checks.py | |
parent | e7dbf89f31711271e61f653e1cc7fb2c2b57cc6e (diff) |
pep8
Diffstat (limited to 'src/leap/base/tests/test_checks.py')
-rw-r--r-- | src/leap/base/tests/test_checks.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/leap/base/tests/test_checks.py b/src/leap/base/tests/test_checks.py index 272e7053..7a694f89 100644 --- a/src/leap/base/tests/test_checks.py +++ b/src/leap/base/tests/test_checks.py @@ -119,16 +119,16 @@ class LeapNetworkCheckTest(BaseLeapTest): checker.check_internet_connection() with patch.object(requests, "get") as mocked_get: - mocked_get.side_effect = \ - requests.ConnectionError("[Errno 113] No route to host") + mocked_get.side_effect = requests.ConnectionError( + "[Errno 113] No route to host") with self.assertRaises(exceptions.NoInternetConnection): with patch.object(checker, "ping_gateway") as mock_ping: mock_ping.return_value = True checker.check_internet_connection() with patch.object(requests, "get") as mocked_get: - mocked_get.side_effect = \ - requests.ConnectionError("[Errno 113] No route to host") + mocked_get.side_effect = requests.ConnectionError( + "[Errno 113] No route to host") with self.assertRaises(exceptions.NoInternetConnection): with patch.object(checker, "ping_gateway") as mock_ping: mock_ping.side_effect = exceptions.NoConnectionToGateway |