<reponame>bopopescu/PyHouse_1
"""
@name: PyHouse/src/Modules/security/test/test_dropbox_uploader.py
@author: <NAME>
@contact: <EMAIL>
@copyright: 2014 by <NAME>
@note: Created on May 31, 2014
@license: MIT License
@summary: Test uploading files to dropbox.

"""


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

#  Import PyMh files and modules.
from Modules.Core.data_objects import CoreServicesInformation, NodeData
from Modules.Computer.Nodes import node_local
from test import xml_data


class Test_01_XML(unittest.TestCase):


    def setUp(self):
        self.m_root_element = ET.fromstring(xml_data.XML_LONG)

    def test_0101_read_xml(self):
        l_pyhouse = self.m_root_element
        self.assertEqual(l_pyhouse.tag, 'PyHouse')


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

    def setUp(self):
        self.m_pyhouse_obj.Xml.XmlRoot = ET.fromstring(xml_data.XML_LONG)
        self.m_pyhouse_obj.Services = CoreServicesInformation()
        self.m_pyhouse_obj.Computer.Nodes[self.m_pyhouse_obj.Computer.Name] = NodeData()
        self.m_api = node_local.API()


class Test_03_Connect(unittest.TestCase):

    def SetUp(self):
        pass

    def test_0301_connect(self):
        pass


class Test_06_DropboxConnect(unittest.TestCase):

    def SetUp(self):
        self.m_pyhouse_obj.Xml.XmlRoot = ET.fromstring(xml_data.XML_LONG)

    def test_0601_connect(self):
        pass

#  ## END DBK

"""
@name: PyHouse/src/Modules/security/test/test_dropbox_uploader.py
@author: <NAME>
@contact: <EMAIL>
@copyright: 2014 by <NAME>
@note: Created on May 31, 2014
@license: MIT License
@summary: Test uploading files to dropbox.

"""


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

#  Import PyMh files and modules.
from Modules.Core.data_objects import CoreServicesInformation, NodeData
from Modules.Computer.Nodes import node_local
from test import xml_data


class Test_01_XML(unittest.TestCase):


    def setUp(self):
        self.m_root_element = ET.fromstring(xml_data.XML_LONG)

    def test_0101_read_xml(self):
        l_pyhouse = self.m_root_element
        self.assertEqual(l_pyhouse.tag, 'PyHouse')


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

    def setUp(self):
        self.m_pyhouse_obj.Xml.XmlRoot = ET.fromstring(xml_data.XML_LONG)
        self.m_pyhouse_obj.Services = CoreServicesInformation()
        self.m_pyhouse_obj.Computer.Nodes[self.m_pyhouse_obj.Computer.Name] = NodeData()
        self.m_api = node_local.API()


class Test_03_Connect(unittest.TestCase):

    def SetUp(self):
        pass

    def test_0301_connect(self):
        pass


class Test_06_DropboxConnect(unittest.TestCase):

    def SetUp(self):
        self.m_pyhouse_obj.Xml.XmlRoot = ET.fromstring(xml_data.XML_LONG)

    def test_0601_connect(self):
        pass

#  ## END DBK
@name: PyHouse/src/Modules/security/test/test_dropbox_uploader.py @author: <NAME> @contact: <EMAIL> @copyright: 2014 by <NAME> @note: Created on May 31, 2014 @license: MIT License @summary: Test uploading files to dropbox. #  Import system type stuff #  Import PyMh files and modules. This section tests the reading and writing of XML used by node_local. #  ## END DBK