コード例 #1
0
ファイル: test_utils.py プロジェクト: wtsi-hgi/bam2cram-check
 def test_read_from_file(self, mock_open):
     utils.read_from_file('blah')
     mock_open.assert_called_once_with('blah')
コード例 #2
0
 def test_read_from_file(self, mock_open):
     utils.read_from_file('blah')
     mock_open.assert_called_once_with('blah')
コード例 #3
0
 def _get_stats(cls, stats_fpath):
     if stats_fpath and os.path.isfile(stats_fpath):
         return utils.read_from_file(stats_fpath)
     return None
コード例 #4
0
 def _get_stats(cls, stats_fpath):
     if stats_fpath and os.path.isfile(stats_fpath):
         return utils.read_from_file(stats_fpath)
     return None