Beispiel #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)
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)
 def setUp(self):
     self._package_manager = PackageManager()
     self._hardware_layer = HardwareLayer(self._package_manager)
Beispiel #4
0
 def setUp(self):
     self._package_manager = PackageManager()
     self._hardware_layer = HardwareLayer(self._package_manager)