def test_coerce(self): class O(object): def __coerce__(self, other): return self, other o = Proxy(O) assert o.__coerce__(3)
def test_coerce(self): class O(object): def __coerce__(self, other): return self, other o = Proxy(O) self.assertTrue(o.__coerce__(3))