def test_bwamem_idxstats_no_bam_output(self): inBam = os.path.join(util.file.get_test_input_path(), 'G5012.3.testreads.bam') outStats = util.file.mkstempfname('.stats.txt', directory=self.tempDir) read_utils.bwamem_idxstats(inBam, self.ebolaRef, None, outStats) with open(outStats, 'rt') as inf: actual_count = int(inf.readline().strip().split('\t')[2]) self.assertGreater(actual_count, 18000)