def test_replaces_X_with_N_in_rna_variant(self): self.assertEqual(utilities.normalize_variant("r.100a>x"), "r.100a>n") self.assertEqual(utilities.normalize_variant("r.100_102delinsnnn"), "r.100_102delinsnnn")
def test_ignores_invalid_protein_variant(self): self.assertEqual(utilities.normalize_variant("p.G4??"), "p.G4??")
def test_passes_on_none(self): self.assertIsNone(utilities.normalize_variant(None))
def test_passes_on_special(self): self.assertEqual(utilities.normalize_variant("_wt"), "_wt") self.assertEqual(utilities.normalize_variant("_sy"), "_sy")
def test_stripts_white_space(self): self.assertEqual(utilities.normalize_variant(" c.1A>G "), "c.1A>G")