def test_proxy(self):
        # trigger proxy
        import using_testlib_10 as v1
        import multiversion
        self.assertEqual(v1.a_function(), 'from version 1.0')

        import testlib
        try:
            testlib.a_function
        except __HOLE__:
            pass
        else:
            self.fail('failed')

        multiversion.require_version('testlib', '1.0',
                                     globals=globals())
        self.assertEqual(testlib.a_function(), 'from version 1.0')
dataset/ETHPy150Open mitsuhiko/multiversion/tests/tests.py/SimpleTestCase.test_proxy