예제 #1
0
def test_caller_package():
    import sys
    assert caller_package(1) == sys.modules[__package__]
    assert invoke(caller_package) == sys.modules[__package__]
예제 #2
0
def test_caller_package():
    import sys
    assert caller_package(1) == sys.modules[__package__]
    assert invoke(caller_package) == sys.modules[__package__]
예제 #3
0
def get_this_package():
    from morepath.autosetup import caller_package

    return caller_package(1)
예제 #4
0
파일: __init__.py 프로젝트: gotcha/morepath
def get_this_package():
    from morepath.autosetup import caller_package
    return caller_package(1)