Exemplo n.º 1
0
    def test_index(self):
        class O(object):
            def __index__(self):
                return 1

        o = Proxy(O)
        assert o.__index__() == 1
Exemplo n.º 2
0
    def test_index(self):
        class O(object):
            def __index__(self):
                return 1

        o = Proxy(O)
        self.assertEqual(o.__index__(), 1)
Exemplo n.º 3
0
    def test_index(self):
        class O(object):
            def __index__(self):
                return 1

        o = Proxy(O)
        self.assertEqual(o.__index__(), 1)
Exemplo n.º 4
0
    def test_index(self):

        class O(object):

            def __index__(self):
                return 1

        o = Proxy(O)
        assert o.__index__() == 1