def testInstantiateComponent(self): """ Tests :meth:`manager.componentsManager.Manager.instantiateComponent` method. """ manager = Manager() manager.registerComponent(SINGLE_COMPONENT[1]) self.assertTrue(manager.instantiateComponent(SINGLE_COMPONENT[0], managerCallback)) self.assertIsInstance(manager.components.values()[0].interface, SINGLE_COMPONENT[2])
def testInstantiateComponent(self): """ Tests :meth:`manager.componentsManager.Manager.instantiateComponent` method. """ manager = Manager() manager.registerComponent(SINGLE_COMPONENT[1]) self.assertTrue( manager.instantiateComponent(SINGLE_COMPONENT[0], managerCallback)) self.assertIsInstance(manager.components.values()[0].interface, SINGLE_COMPONENT[2])
def testRegisterComponent(self): """ Tests :meth:`manager.componentsManager.Manager.registerComponent` method. """ manager = Manager() self.assertTrue(manager.registerComponent(SINGLE_COMPONENT[1])) self.assertIn(SINGLE_COMPONENT[0], manager.components)
def testRegisterComponent(self): """ Tests :meth:`manager.componentsManager.Manager.registerComponent` method. """ manager = Manager() self.assertTrue(manager.registerComponent(SINGLE_COMPONENT[1])) self.assertIn(SINGLE_COMPONENT[0], manager.components)