# Path: nsdf/model.py
# class ModelComponent(object):
#     def __init__(self, name, uid=None, parent=None, attrs=None,
#                  hdfgroup=None):
#     def add_child(self, child):
#     def add_children(self, children):
#     def get_node(self, path):
#     def visit(self, function, *args, **kwargs):
#     def print_tree(self, indent=''):
#     def check_uid(self, uid_dict):
#     def path(self):
#     def update_id_path_dict(self):
#         def update_dict(node, dictobj):
#     def get_id_path_dict(self):
# def common_prefix(paths, sep='/'):


import unittest
import util
from nsdf import model
# (at your option) any later version.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.  If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street, Fifth
# Floor, Boston, MA 02110-1301, USA.
# 
# 

# Code:



class TestModel(unittest.TestCase):
    """Test model and modeltree."""
    def setUp(self):
        self.root = model.ModelComponent('root', '1')

    def tearDown(self):
        # reset_uid()
       pass

    def test_add_child(self):
        name = 'test'
        uid = '123'

# Path: nsdf/model.py
# class ModelComponent(object):
#     def __init__(self, name, uid=None, parent=None, attrs=None,
#                  hdfgroup=None):
#     def add_child(self, child):
#     def add_children(self, children):
#     def get_node(self, path):
#     def visit(self, function, *args, **kwargs):
#     def print_tree(self, indent=''):
#     def check_uid(self, uid_dict):
#     def path(self):
#     def update_id_path_dict(self):
#         def update_dict(node, dictobj):
#     def get_id_path_dict(self):
# def common_prefix(paths, sep='/'):


# Path: nsdf/test/test_util.py
import unittest
import util
from nsdf import model

# (at your option) any later version.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.  If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street, Fifth
# Floor, Boston, MA 02110-1301, USA.
# 
# 

# Code:



class TestModel(unittest.TestCase):
    """Test model and modeltree."""
    def setUp(self):
        self.root = model.ModelComponent('root', '1')

    def tearDown(self):
        # reset_uid()
       pass

    def test_add_child(self):
        name = 'test'
        uid = '123'

        comp = model.ModelComponent(name, uid)