def test_check_path_writable_6(self, mock_access, mock_path): mock_path.isdir.return_value = True mock_access.return_value = True self.assertTrue(utils.check_path_writable('some_path'))
def test_check_path_writable_4(self, mock_access, mock_path): mock_path.isdir.return_value = False mock_path.exists.return_value = True mock_path.dirname.return_value = 'some_dir' mock_access.return_value = True self.assertTrue(utils.check_path_writable('some_path'))