Lines Matching refs:mock_path_exists
33 def test_download_image(self, mock_path_exists, mock_mkdirs): argument
46 mock_path_exists.return_value = False
52 self.assertEqual(mock_path_exists.call_count, 2)
53 mock_path_exists.assert_called_with(
56 mock_path_exists.assert_any_call(
75 mock_path_exists.reset_mock()
77 mock_path_exists.return_value = True
83 self.assertEqual(mock_path_exists.call_count, 2)
84 mock_path_exists.assert_called_with(
87 mock_path_exists.assert_any_call(
96 def test_uncompress_image(self, mock_path_exists): argument
107 mock_path_exists.return_value = False
112 self.assertEqual(mock_path_exists.call_count, 1)
113 mock_path_exists.assert_called_with(
143 mock_path_exists.reset_mock()
145 mock_path_exists.return_value = True
149 self.assertEqual(mock_path_exists.call_count, 1)
150 mock_path_exists.assert_called_with(