def test_inc_double_dash_name(self): g = Gene('IncFII(S).1__CP000851', 5, 5) self.assertEqual(g.short_name(), "IncFII(S).1") self.assertEqual(g.accession(), "CP000851")
def test_rep_name(self): g = Gene('rep5.1_rep(pMW2)_NC005011', 5, 5) self.assertEqual(g.short_name(), "rep5.1") self.assertEqual(g.accession(), "NC005011")
def test_rep_with_slash_name(self): g = Gene('rep6.1_repA(p703/5)_AF109375', 5, 5) self.assertEqual(g.short_name(), "rep6.1") self.assertEqual(g.accession(), "AF109375")
def test_nc_name(self): g = Gene('Col(BS512).1__NC_010656.2', 5, 5) self.assertEqual(g.accession(), "NC_010656.2") self.assertEqual(g.short_name(), "Col(BS512).1")