Example #1
0
    def test_nullController(self):
        root = Controller.RootController('root')

        controller = Controller.NullController('Test', root, None)

        with self.assertRaises(Exception):
            controller.add_controller('Test', root)
Example #2
0
 def create_null_controller(self, type_: oer.Type):
     if isinstance(type_, oer.Null):
         Controller.NullController(type_.name, self._parent, None)
     else:
         raise Exception(f"Unknown type for ControllerFactory: {type_}")