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

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

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

        o = Proxy(O)
        self.assertEqual(o.__index__(), 1)
예제 #4
0
파일: test_local.py 프로젝트: bryson/celery
    def test_index(self):

        class O(object):

            def __index__(self):
                return 1

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