Exemple #1
0
    def test_coerce(self):
        class O(object):
            def __coerce__(self, other):
                return self, other

        o = Proxy(O)
        assert o.__coerce__(3)
Exemple #2
0
    def test_coerce(self):
        class O(object):
            def __coerce__(self, other):
                return self, other

        o = Proxy(O)
        self.assertTrue(o.__coerce__(3))