Beispiel #1
0
def test_enter_macro():
    obj = lambda: None
    rtn = enter_macro(obj, "wakka", True, True)
    assert obj is rtn
    assert obj.macro_block == "wakka"
    assert obj.macro_globals
    assert obj.macro_locals
Beispiel #2
0
def test_enter_macro():
    obj = lambda: None
    rtn = enter_macro(obj, 'wakka', True, True)
    assert obj is rtn
    assert obj.macro_block == 'wakka'
    assert obj.macro_globals
    assert obj.macro_locals