def testLookupLate(self):
        self.assertEqual(late_global, 'late_global')

        def local_lookup1():
            self.assertEqual(late_local, 'late_local')
            self.assertTrue(callable(local_lookup2))
            self.assertEqual(local_lookup2(), 'late_local')
            try:
                local_lookup3()
                self.fail("lookup3")
            except __HOLE__, e:
                self.assertTrue(True)

        def local_lookup2():
            return late_local

        def local_lookup3():
            raise NotImplementedError


        late_local = 'late_local'
        local_lookup1()

        late = imports.enum.Late.getLate()
        self.assertEqual(late.value, 'late')
dataset/ETHPy150Open pyjs/pyjs/examples/libtest/FunctionTest.py/FunctionTest.testLookupLate