From 3ec0454995dec97fb5fa1eceda93c59d33df3d0e Mon Sep 17 00:00:00 2001 From: Radostin Stoyanov Date: Thu, 3 Aug 2017 14:13:02 +0100 Subject: Use explicit import Reduce the number of import statements and improve readability. Update the unit tests to match these changes. --- tests/test_docker_source.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test_docker_source.py') diff --git a/tests/test_docker_source.py b/tests/test_docker_source.py index 8108e31..4c52173 100644 --- a/tests/test_docker_source.py +++ b/tests/test_docker_source.py @@ -375,7 +375,7 @@ class TestDockerSource(unittest.TestCase): """ m_self = mock.Mock(spec=sources.DockerSource) m_self.parse_output.return_value = parse_output_return - with mock.patch.multiple('virtBootstrap.sources', + with mock.patch.multiple('virtBootstrap.sources.subprocess', Popen=mock.DEFAULT, PIPE=mock.DEFAULT) as mocked: with mock.patch('virtBootstrap.utils.make_async') as m_make_async: @@ -402,7 +402,7 @@ class TestDockerSource(unittest.TestCase): Ensures that read_skopeo_progress() raise CalledProcessError when parse_output() returns false. """ - with self.assertRaises(sources.CalledProcessError): + with self.assertRaises(sources.subprocess.CalledProcessError): self._mock_read_skopeo_progress('test', False) ################################### -- cgit