def test_make_fasta_rec(self): """make_fasta_rec should return expected results.""" header = '>E2_1 FYI2DSB01B17QJ orig_bc=ATCACTAGTCAC new_bc=ATCACTAGTCAC bc_diffs=0' seq = 'CTGGTC' qual = map(int, '32 32 32 19 19 19'.split()) self.assertEqual(make_fastq_rec(header, seq, qual), """@E2_1 FYI2DSB01B17QJ orig_bc=ATCACTAGTCAC new_bc=ATCACTAGTCAC bc_diffs=0 CTGGTC +E2_1 FYI2DSB01B17QJ orig_bc=ATCACTAGTCAC new_bc=ATCACTAGTCAC bc_diffs=0 AAA444""")
def test_make_fasta_rec(self): """make_fasta_rec should return expected results.""" header = '>E2_1 FYI2DSB01B17QJ orig_bc=ATCACTAGTCAC new_bc=ATCACTAGTCAC bc_diffs=0' seq = 'CTGGTC' qual = map(int, '32 32 32 19 19 19'.split()) self.assertEqual( make_fastq_rec(header, seq, qual), """@E2_1 FYI2DSB01B17QJ orig_bc=ATCACTAGTCAC new_bc=ATCACTAGTCAC bc_diffs=0 CTGGTC +E2_1 FYI2DSB01B17QJ orig_bc=ATCACTAGTCAC new_bc=ATCACTAGTCAC bc_diffs=0 AAA444""")