Home
last modified time | relevance | path

Searched refs:mock_isdir (Results 1 – 6 of 6) sorted by relevance

/external/toolchain-utils/llvm_tools/
Dgit_unittest.py27 def testFailedToCreateBranchForInvalidDirectoryPath(self, mock_isdir): argument
39 mock_isdir.assert_called_once()
43 def testSuccessfullyCreatedBranch(self, mock_command_output, mock_isdir): argument
49 mock_isdir.assert_called_once_with(path_to_repo)
54 def testFailedToDeleteBranchForInvalidDirectoryPath(self, mock_isdir): argument
66 mock_isdir.assert_called_once()
70 def testSuccessfullyDeletedBranch(self, mock_command_output, mock_isdir): argument
76 mock_isdir.assert_called_once_with(path_to_repo)
81 def testFailedToUploadChangesForInvalidDirectoryPath(self, mock_isdir): argument
93 mock_isdir.assert_called_once()
[all …]
Dpatch_manager_unittest.py29 def testInvalidDirectoryPassedAsCommandLineArgument(self, mock_isdir): argument
41 mock_isdir.assert_called_once()
46 def testValidDirectoryPassedAsCommandLineArgument(self, mock_isdir): argument
51 mock_isdir.assert_called_once()
105 def testInvalidPathToFilesDirWhenConstructingPathToPatch(self, mock_isdir): argument
119 mock_isdir.assert_called_once()
127 def testConstructedPathToPatchDoesNotExist(self, mock_isfile, mock_isdir): argument
143 mock_isdir.assert_called_once()
153 def testConstructedPathToPatchSuccessfully(self, mock_isfile, mock_isdir): argument
164 mock_isdir.assert_called_once()
[all …]
Dllvm_patch_management_unittest.py30 def testInvalidChrootPathWhenGetPathToFilesDir(self, mock_isdir): argument
42 mock_isdir.assert_called_once()
50 self, mock_get_relative_path_of_chroot_path, mock_chroot_cmd, mock_isdir): argument
73 mock_isdir.assert_called_once()
/external/toolchain-utils/crosperf/
Dresults_cache_unittest.py508 def test_copy_files_to(self, mock_copyfiles, mock_runcmd, mock_isdir): argument
518 mock_isdir.return_value = True
532 mock_isdir.return_value = False
2048 def test_read_result(self, mock_create, mock_isdir, mock_runcmd): argument
2069 mock_isdir.return_value = True
2100 mock_isdir.return_value = False
2107 mock_isdir.return_value = True
Dmachine_manager_unittest.py87 def setUp(self, mock_isdir): argument
89 mock_isdir.return_value = True
/external/python/cpython3/Lib/test/
Dtest_site.py310 with mock.patch('os.path.isdir', return_value=False) as mock_isdir, \
319 mock_isdir.assert_called_once_with(user_site)