def test_add_method_args(self): smobj = SelfMutilatingObject() smobj.add_method('multiply', lambda a, b: a * b) assert smobj.multiply(2, 2) == 4