Esempio n. 1
0
class TestHardwareLayer(unittest.TestCase):
    def setUp(self):
        self._package_manager = PackageManager()
        self._hardware_layer = HardwareLayer(self._package_manager)

    def tearDown(self):
        pass

    @defer.inlineCallbacks
    def test_add_driver(self):
        exp_driver = MockDriver()
        obs_driver = yield self._hardware_layer.add_driver("MockDriver")

        self.assertEquals(obs_driver, exp_driver)
Esempio n. 2
0
class TestHardwareLayer(unittest.TestCase):

    def setUp(self):
        self._package_manager = PackageManager()
        self._hardware_layer = HardwareLayer(self._package_manager)

    def tearDown(self):
        pass

    @defer.inlineCallbacks
    def test_add_driver(self):
        exp_driver = MockDriver()
        obs_driver = yield self._hardware_layer.add_driver("MockDriver")

        self.assertEquals(obs_driver, exp_driver)
Esempio n. 3
0
 def setUp(self):
     self._package_manager = PackageManager()
     self._hardware_layer = HardwareLayer(self._package_manager)
Esempio n. 4
0
 def setUp(self):
     self._package_manager = PackageManager()
     self._hardware_layer = HardwareLayer(self._package_manager)