コード例 #1
0
    def test_index(self):
        class O(object):
            def __index__(self):
                return 1

        o = Proxy(O)
        assert o.__index__() == 1
コード例 #2
0
ファイル: test_local.py プロジェクト: tongdu99/celery
    def test_index(self):
        class O(object):
            def __index__(self):
                return 1

        o = Proxy(O)
        self.assertEqual(o.__index__(), 1)
コード例 #3
0
ファイル: test_local.py プロジェクト: nimrodm/celery
    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