def test_module(self): """Fully qualified path of package module file""" base_path = agdevicecontrol.__path__[0] path = os.path.abspath(base_path + '/clients/connector.pyc') f = resource.module_path('agdevicecontrol.clients.connector') assert f == path
def test_subpackage(self): """Fully qualified path of subpackage""" base_path = agdevicecontrol.__path__[0] path = os.path.abspath(base_path + '/server') f = resource.module_path('agdevicecontrol.server') assert f == path