<reponame>bopopescu/PyHouse_1
"""
@name:      PyHouse/src/Modules/families/Insteon/test/test_Insteon_device.py
@author:    <NAME>
@contact:   <EMAIL>
@copyright: (c) 2011-2015 by <NAME>
@note:      Created on Apr 1, 2011
@license:   MIT License
@summary:   This module tests Insteon_device

Passed all 1 tests - DBK - 2015-07-26
"""

# Import system type stuff
import xml.etree.ElementTree as ET
from twisted.trial import unittest

# Import PyMh files and modules.
from Modules.Families.Insteon.Insteon_data import InsteonData
from Modules.Families.Insteon import Insteon_device
from test.xml_data import XML_LONG
from test.testing_mixin import SetupPyHouseObj


class SetupMixin(object):

    def setUp(self, p_root):
        self.m_pyhouse_obj = SetupPyHouseObj().BuildPyHouseObj(p_root)
        self.m_xml = SetupPyHouseObj().BuildXml(p_root)


class C01_API(SetupMixin, unittest.TestCase):
    """ This section tests the reading and writing of XML used by node_local.
    """

    def setUp(self):
        SetupMixin.setUp(self, ET.fromstring(XML_LONG))
        self.m_api = Insteon_device.API(self.m_pyhouse_obj)
        self.m_device = InsteonData()

    def test_01_Init(self):
        """ Be sure that the XML contains the right stuff.
        """
        pass

def suite():
    suite = unittest.TestSuite()
    # suite.addTest(Test_02_API('test_0202_Init'))
    return suite

# ## END

"""
@name:      PyHouse/src/Modules/families/Insteon/test/test_Insteon_device.py
@author:    <NAME>
@contact:   <EMAIL>
@copyright: (c) 2011-2015 by <NAME>
@note:      Created on Apr 1, 2011
@license:   MIT License
@summary:   This module tests Insteon_device

Passed all 1 tests - DBK - 2015-07-26
"""

# Import system type stuff
import xml.etree.ElementTree as ET
from twisted.trial import unittest

# Import PyMh files and modules.
from Modules.Families.Insteon.Insteon_data import InsteonData
from Modules.Families.Insteon import Insteon_device
from test.xml_data import XML_LONG
from test.testing_mixin import SetupPyHouseObj


class SetupMixin(object):

    def setUp(self, p_root):
        self.m_pyhouse_obj = SetupPyHouseObj().BuildPyHouseObj(p_root)
        self.m_xml = SetupPyHouseObj().BuildXml(p_root)


class C01_API(SetupMixin, unittest.TestCase):
    """ This section tests the reading and writing of XML used by node_local.
    """

    def setUp(self):
        SetupMixin.setUp(self, ET.fromstring(XML_LONG))
        self.m_api = Insteon_device.API(self.m_pyhouse_obj)
        self.m_device = InsteonData()

    def test_01_Init(self):
        """ Be sure that the XML contains the right stuff.
        """
        pass

def suite():
    suite = unittest.TestSuite()
    # suite.addTest(Test_02_API('test_0202_Init'))
    return suite

# ## END
@name:      PyHouse/src/Modules/families/Insteon/test/test_Insteon_device.py @author:    <NAME> @contact:   <EMAIL> @copyright: (c) 2011-2015 by <NAME> @note:      Created on Apr 1, 2011 @license:   MIT License @summary:   This module tests Insteon_device  Passed all 1 tests - DBK - 2015-07-26 # Import system type stuff # Import PyMh files and modules. This section tests the reading and writing of XML used by node_local. Be sure that the XML contains the right stuff. # suite.addTest(Test_02_API('test_0202_Init')) # ## END