Lines Matching refs:mock_path_exists
37 def test_download_image(self, mock_path_exists, mock_mkdirs): argument
50 mock_path_exists.return_value = False
56 self.assertEqual(mock_path_exists.call_count, 2)
57 mock_path_exists.assert_called_with(
60 mock_path_exists.assert_any_call(
79 mock_path_exists.reset_mock()
81 mock_path_exists.return_value = True
87 self.assertEqual(mock_path_exists.call_count, 2)
88 mock_path_exists.assert_called_with(
91 mock_path_exists.assert_any_call(
100 def test_uncompress_image(self, mock_path_exists): argument
111 mock_path_exists.return_value = False
116 self.assertEqual(mock_path_exists.call_count, 1)
117 mock_path_exists.assert_called_with(
147 mock_path_exists.reset_mock()
149 mock_path_exists.return_value = True
153 self.assertEqual(mock_path_exists.call_count, 1)
154 mock_path_exists.assert_called_with(