Пример #1
0
 def test_symlink(self, mock_chmod):
     os.symlink(self.file_path, "link")
     _pip._replicate_owner_mode("link")
     self.assertFalse(mock_chmod.called)
Пример #2
0
 def test_symlink(self, mock_chmod):
     os.symlink(self.file_path, "link")
     _pip._replicate_owner_mode("link")
     self.assertFalse(mock_chmod.called)
Пример #3
0
 def test_missing_path(self, mock_path_exists, mock_os_stat):
     _pip._replicate_owner_mode("/nonexistant_path")
     self.assertFalse(mock_os_stat.called)
Пример #4
0
 def test_missing_path(self, mock_path_exists, mock_os_stat):
     _pip._replicate_owner_mode("/nonexistant_path")
     self.assertFalse(mock_os_stat.called)