from __future__ import absolute_import
from __future__ import print_function

__author__ = 'Arno-Can Uestuensoez'
__license__ = "Artistic-License-2.0 + Forced-Fairplay-Constraints"
__copyright__ = "Copyright (C) 2010-2016 Arno-Can Uestuensoez" \
                " @Ingenieurbuero Arno-Can Uestuensoez"
__version__ = '0.1.10'
__uuid__ = "60cac28d-efe6-4a8d-802f-fa4fc94fa741"

__docformat__ = "restructuredtext en"

import unittest
import os
import sys

from yapydata.datatree.datatree import DataTree



class CallUnits(unittest.TestCase):


    def setUp(self):
        unittest.TestCase.setUp(self)
 #       sys.path.insert(0, mypath) 
        self.maxDiff = None

    def testCase010(self):
        resval = 123
        
        _cap = DataTree([1,])

        res = _cap.create(value=resval)
        resdata = _cap.data
        resx = (_cap.data,)
        
        self.assertEqual(res, resx)
        self.assertEqual(_cap.data, resdata)
        self.assertEqual(_cap.data, resval)

        
#         _cap = DataTree([])
#         resx = None
#         _cap.create(None)
#         self.assertEqual(_cap.data, resx)


if __name__ == '__main__':
    unittest.main()
