fix import

This commit is contained in:
Tim Bentley 2016-04-04 22:11:23 +01:00
parent ee62d9fa6c
commit d440891819

View File

@ -347,7 +347,7 @@ class TestUtils(TestCase):
with patch('openlp.core.utils.urllib.request.Request') as MockRequest, \ with patch('openlp.core.utils.urllib.request.Request') as MockRequest, \
patch('openlp.core.utils.urllib.request.urlopen') as mock_urlopen, \ patch('openlp.core.utils.urllib.request.urlopen') as mock_urlopen, \
patch('openlp.core.utils._get_user_agent') as mock_get_user_agent, \ patch('openlp.core.utils._get_user_agent') as mock_get_user_agent, \
patch('openlp.core.common.Registry') as MockRegistry: patch('openlp.core.utils.Registry') as MockRegistry:
# GIVEN: Mocked out objects, a fake URL # GIVEN: Mocked out objects, a fake URL
mocked_request_object = MagicMock() mocked_request_object = MagicMock()
MockRequest.return_value = mocked_request_object MockRequest.return_value = mocked_request_object