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

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

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

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

        class O(object):

            def __index__(self):
                return 1

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