Пример #1
0
 def test_new_taxa_to_immutable(self):
     tns = TaxonNamespace()
     tns.is_mutable = False
     with self.assertRaises(TypeError):
         tns.new_taxa(self.str_labels)
     self.assertEqual(len(tns), 0)
Пример #2
0
 def test_new_taxa(self):
     tns = TaxonNamespace()
     tns.new_taxa(self.str_labels)
     self.validate_taxon_concepts(tns, self.str_labels)