def test118():
    #this is just ensuring we throw if a component derived class  fails to
    #implement fix_arguments()
    class MissedMethod1(AbstractModelingEntity):
        def __init__(self, name, arg1, arg2):
            super(MissedMethod1, self).__init__(name)
            self.arg1 = arg1
            self.arg2 = arg2
    comp = MissedMethod1("oops!", 1, 2)
    try:
        comp.fix_arguments()
        assert False, "fix_arguments should have thrown an exception"
    except __HOLE__, _:
        assert True
    except Exception, e:
        assert False, "got an unexpected exception: '%s'" % e.message
dataset/ETHPy150Open haxsaw/actuator/src/tests/infra_tests.py/test118