コード例 #1
0
ファイル: test_utils.py プロジェクト: wtsi-hgi/bam2cram-check
 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'))
コード例 #2
0
 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'))
コード例 #3
0
ファイル: test_utils.py プロジェクト: wtsi-hgi/bam2cram-check
 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'))
コード例 #4
0
 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'))