def test_caller_package(): import sys assert caller_package(1) == sys.modules[__package__] assert invoke(caller_package) == sys.modules[__package__]
def get_this_package(): from morepath.autosetup import caller_package return caller_package(1)