# Path: tests/test_bridgepoint/utils.py
# class PrebuildFunctionTestCase(CompareAST):
#     
#     @classmethod
#     def setUpClass(cls):
#         cls.loader = ooaofooa.Loader()
#         
#     def setUp(self):
#         self.metamodel = self.loader.build_metamodel()
#         pe_pe = self.metamodel.new('PE_PE')
#         s_sync = self.metamodel.new('S_SYNC')
#         xtuml.relate(s_sync, pe_pe, 8001)
#         
#         s_dt = self.metamodel.select_any('S_DT', lambda sel: sel.Name == 'void')
#         xtuml.relate(s_dt, s_sync, 25)
#         
#     def tearDown(self):
#         del self.metamodel
#         
#     def prebuild_text(self, s):
#         s_sync = self.metamodel.select_any('S_SYNC')
#         s_sync.Action_Semantics_internal = s
#         s_sync.Suc_Pars = 1
#         
#         prebuild.prebuild_model(self.metamodel)
#         self.assertTrue(self.metamodel.is_consistent())
#         
#         generated_code = sourcegen.gen_text_action(s_sync)
#         
#         handwritten_ast = oal.parse(s)
#         generated_ast = oal.parse(generated_code)
# 
#         self.compare(handwritten_ast, generated_ast)
# 
# Path: tests/test_bridgepoint/utils.py
# def prebuild_docstring(f):
#     
#     def wrapper(self):
#         self.prebuild_text(f.__doc__)
#         f(self)
#         
#     return wrapper
# 
# Path: xtuml/meta.py
# def navigate_one(self, instance):
#     '''
#     Navigate from *instance* across the link.
#     '''
#     return next(iter(self.navigate(instance)), None)


from tests.test_bridgepoint.utils import PrebuildFunctionTestCase
from tests.test_bridgepoint.utils import prebuild_docstring
from xtuml import navigate_one as one
    import logging
    import unittest
        self.assertEqual(v_val.EndPosition, 9)
        
        s_dt = one(v_val).S_DT[820]()
        self.assertEqual(s_dt.Name, 'string')
        
        v_lst = one(v_val).V_LST[801]()
        self.assertEqual(v_lst.Value, '')
        
    @prebuild_docstring
    def test_true(self):
        '''return True;'''
        act_ret = self.metamodel.select_one('ACT_RET')
        self.assertIsNotNone(act_ret)
        
        act_smt = one(act_ret).ACT_SMT[603]()
        self.assertIsNotNone(act_smt)
        
        v_val = one(act_ret).V_VAL[668]()
        self.assertEqual(v_val.isLValue, False)
        self.assertEqual(v_val.isImplicit, False)
        self.assertEqual(v_val.LineNumber, 1)
        self.assertEqual(v_val.StartPosition, 8)
        self.assertEqual(v_val.EndPosition, 11)
        
        s_dt = one(v_val).S_DT[820]()
        self.assertEqual(s_dt.Name, 'boolean')
        
        v_lbo = one(v_val).V_LBO[801]()
        self.assertEqual(v_lbo.Value, 'TRUE')
        

# Path: tests/test_bridgepoint/utils.py
# class PrebuildFunctionTestCase(CompareAST):
#     
#     @classmethod
#     def setUpClass(cls):
#         cls.loader = ooaofooa.Loader()
#         
#     def setUp(self):
#         self.metamodel = self.loader.build_metamodel()
#         pe_pe = self.metamodel.new('PE_PE')
#         s_sync = self.metamodel.new('S_SYNC')
#         xtuml.relate(s_sync, pe_pe, 8001)
#         
#         s_dt = self.metamodel.select_any('S_DT', lambda sel: sel.Name == 'void')
#         xtuml.relate(s_dt, s_sync, 25)
#         
#     def tearDown(self):
#         del self.metamodel
#         
#     def prebuild_text(self, s):
#         s_sync = self.metamodel.select_any('S_SYNC')
#         s_sync.Action_Semantics_internal = s
#         s_sync.Suc_Pars = 1
#         
#         prebuild.prebuild_model(self.metamodel)
#         self.assertTrue(self.metamodel.is_consistent())
#         
#         generated_code = sourcegen.gen_text_action(s_sync)
#         
#         handwritten_ast = oal.parse(s)
#         generated_ast = oal.parse(generated_code)
# 
#         self.compare(handwritten_ast, generated_ast)
# 
# Path: tests/test_bridgepoint/utils.py
# def prebuild_docstring(f):
#     
#     def wrapper(self):
#         self.prebuild_text(f.__doc__)
#         f(self)
#         
#     return wrapper
# 
# Path: xtuml/meta.py
# def navigate_one(self, instance):
#     '''
#     Navigate from *instance* across the link.
#     '''
#     return next(iter(self.navigate(instance)), None)


# Path: tests/test_bridgepoint/test_const.py
from tests.test_bridgepoint.utils import PrebuildFunctionTestCase
from tests.test_bridgepoint.utils import prebuild_docstring
from xtuml import navigate_one as one
    import logging
    import unittest

        self.assertEqual(v_val.EndPosition, 9)
        
        s_dt = one(v_val).S_DT[820]()
        self.assertEqual(s_dt.Name, 'string')
        
        v_lst = one(v_val).V_LST[801]()
        self.assertEqual(v_lst.Value, '')
        
    @prebuild_docstring
    def test_true(self):
        '''return True;'''
        act_ret = self.metamodel.select_one('ACT_RET')
        self.assertIsNotNone(act_ret)
        
        act_smt = one(act_ret).ACT_SMT[603]()
        self.assertIsNotNone(act_smt)
        
        v_val = one(act_ret).V_VAL[668]()
        self.assertEqual(v_val.isLValue, False)
        self.assertEqual(v_val.isImplicit, False)
        self.assertEqual(v_val.LineNumber, 1)
        self.assertEqual(v_val.StartPosition, 8)
        self.assertEqual(v_val.EndPosition, 11)
        
        s_dt = one(v_val).S_DT[820]()
        self.assertEqual(s_dt.Name, 'boolean')
        
        v_lbo = one(v_val).V_LBO[801]()
        self.assertEqual(v_lbo.Value, 'TRUE')
        

    @prebuild_docstring