# Path: q2_types/tree/_format.py
# class NewickFormat(model.TextFileFormat):
#     def sniff(self):
# 
# Path: q2_types/tree/_type.py



import unittest
from q2_types.tree import (Phylogeny, Rooted, Unrooted,
                           Hierarchy, NewickDirectoryFormat)
from qiime2.plugin.testing import TestPluginBase
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# ----------------------------------------------------------------------------




class TestTypes(TestPluginBase):
    package = "q2_types.tree.tests"

    def test_phylogeny_semantic_type_registration(self):
        self.assertRegisteredSemanticType(Phylogeny)

    def test_rooted_semantic_type_registration(self):
        self.assertRegisteredSemanticType(Rooted)

    def test_unrooted_semantic_type_registration(self):
        self.assertRegisteredSemanticType(Unrooted)

    def test_hierarchy_semantic_type_registration(self):
        self.assertRegisteredSemanticType(Hierarchy)

    def test_phylogeny_rooted_unrooted_to_newick_dir_fmt_registration(self):
        self.assertSemanticTypeRegisteredToFormat(
            Phylogeny[Rooted | Unrooted], NewickDirectoryFormat)

    def test_hierarchy_to_newick_dir_fmt_registration(self):
        self.assertSemanticTypeRegisteredToFormat(

# Path: q2_types/tree/_format.py
# class NewickFormat(model.TextFileFormat):
#     def sniff(self):
# 
# Path: q2_types/tree/_type.py



# Path: q2_types/tree/tests/test_type.py
import unittest
from q2_types.tree import (Phylogeny, Rooted, Unrooted,
                           Hierarchy, NewickDirectoryFormat)
from qiime2.plugin.testing import TestPluginBase

#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# ----------------------------------------------------------------------------




class TestTypes(TestPluginBase):
    package = "q2_types.tree.tests"

    def test_phylogeny_semantic_type_registration(self):
        self.assertRegisteredSemanticType(Phylogeny)

    def test_rooted_semantic_type_registration(self):
        self.assertRegisteredSemanticType(Rooted)

    def test_unrooted_semantic_type_registration(self):
        self.assertRegisteredSemanticType(Unrooted)

    def test_hierarchy_semantic_type_registration(self):
        self.assertRegisteredSemanticType(Hierarchy)

    def test_phylogeny_rooted_unrooted_to_newick_dir_fmt_registration(self):
        self.assertSemanticTypeRegisteredToFormat(
            Phylogeny[Rooted | Unrooted], NewickDirectoryFormat)

    def test_hierarchy_to_newick_dir_fmt_registration(self):
        self.assertSemanticTypeRegisteredToFormat(

            Hierarchy, NewickDirectoryFormat)