def test_remove_gaps_double_nested(self): genes = 'gene_a or (- or (- or gene_b))' self.assertEqual(psammotate.remove_gap(genes), 'gene_a or ((gene_b))')
def test_remove_gaps_and_missing_nested(self): genes = 'gene_a and (- or -)' self.assertEqual(psammotate.remove_gap(genes), 'gene_a and -')
def test_remove_gaps_and(self): genes = 'gene_a and gene_b' self.assertEqual(psammotate.remove_gap(genes), 'gene_a and gene_b')
def test_remove_gaps_or_missing_nested(self): genes = 'gene_a or (- or -)' self.assertEqual(psammotate.remove_gap(genes), 'gene_a')
def test_remove_gaps_single(self): genes = 'gene_a' self.assertEqual(psammotate.remove_gap(genes), 'gene_a')