From 5c7777fd5a313d06d1276b13078a1d767186ee1d Mon Sep 17 00:00:00 2001 From: Ken Roberts Date: Fri, 9 Jan 2015 10:55:46 -0800 Subject: [PATCH] Fix line spacing --- tests/functional/openlp_core_utils/test_first_time.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/functional/openlp_core_utils/test_first_time.py b/tests/functional/openlp_core_utils/test_first_time.py index 8c4cd23be..d7e2d9bbb 100644 --- a/tests/functional/openlp_core_utils/test_first_time.py +++ b/tests/functional/openlp_core_utils/test_first_time.py @@ -52,11 +52,13 @@ class TestFirstTimeWizard(TestMixin, TestCase): # GIVEN: Initial settings and mocks with patch.object(urllib.request, 'urlopen') as mocked_urlopen: mocked_urlopen.side_effect = ConnectionError + # WHEN: A webpage is requested try: get_web_page(url='http://localhost') except: pass + # THEN: urlopen should have been called CONNECTION_RETRIES + 1 count self.assertEquals(mocked_urlopen.call_count, CONNECTION_RETRIES + 1, 'get_web_page() should have tried {} times'.format(CONNECTION_RETRIES))