Ejemplo n.º 1
0
 def test_already_primary(self, _, __):
     """Test when you give a primary id."""
     primary_id = get_primary_identifier('go', '0003700')
     self.assertIsNotNone(primary_id)
     self.assertEqual('0003700', primary_id)
     name = get_name('go', '0003700')
     self.assertIsNotNone(name)
     self.assertEqual('DNA-binding transcription factor activity', name)
Ejemplo n.º 2
0
 def test_get_primary(self, _, __):
     """Test upgrading an obsolete identifier."""
     primary_id = get_primary_identifier('go', '0001071')
     self.assertIsNotNone(primary_id)
     self.assertEqual('0003700', primary_id)
     name = get_name('go', '0001071')
     self.assertIsNotNone(name)
     self.assertEqual('DNA-binding transcription factor activity', name)
Ejemplo n.º 3
0
 def test_already_primary(self, _, __):
     """Test when you give a primary id."""
     primary_id = get_primary_identifier("go", "0003700")
     self.assertIsNotNone(primary_id)
     self.assertEqual("0003700", primary_id)
     name = get_name("go", "0003700")
     self.assertIsNotNone(name)
     self.assertEqual("DNA-binding transcription factor activity", name)
Ejemplo n.º 4
0
 def test_get_primary(self, _, __):
     """Test upgrading an obsolete identifier."""
     primary_id = get_primary_identifier("go", "0001071")
     self.assertIsNotNone(primary_id)
     self.assertEqual("0003700", primary_id)
     name = get_name("go", "0001071")
     self.assertIsNotNone(name)
     self.assertEqual("DNA-binding transcription factor activity", name)
Ejemplo n.º 5
0
 def test_no_alts(self, _, __):
     """Test alternate behavior for nomenclature source with no alts."""
     primary_id = get_primary_identifier('ncbitaxon', '52818')
     self.assertEqual('52818', primary_id)
     self.assertEqual('Allamanda cathartica', get_name('ncbitaxon', '52818'))
Ejemplo n.º 6
0
 def test_no_alts(self, _, __):
     """Test alternate behavior for nomenclature source with no alts."""
     primary_id = get_primary_identifier("ncbitaxon", "52818")
     self.assertEqual("52818", primary_id)
     self.assertEqual("Allamanda cathartica",
                      get_name("ncbitaxon", "52818"))