def test_locate_positions_no_primers(self): obs_pos = _locate_primer_positions(self.aligned_seqs_fasta) exp_pos = {"start": None, "end": None} self.assertDictEqual(obs_pos, exp_pos)
def test_locate_positions_strange_alignment(self): with self.assertRaisesRegex(ValueError, 'Reverse primer overlaps'): _locate_primer_positions(self.aligned_mess_fasta)
def test_locate_positions_only_rev(self): obs_pos = _locate_primer_positions(self.aligned_with_rev_fasta) exp_pos = {"start": None, "end": 104} self.assertDictEqual(obs_pos, exp_pos)