Exemple #1
0
    def test_index(self):
        class O(object):
            def __index__(self):
                return 1

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

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

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

        class O(object):

            def __index__(self):
                return 1

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