def METHOD_NAME(extra_pythonpath, tmp_config_path):
    "This tests a non-public function."
    # Default path (sys.path)
    results = discovery._package_scan()
    assert "foo" in results
    # Explicit path
    results = discovery._package_scan(path=[extra_pythonpath])
    assert "foo" in results