def METHOD_NAME(self, pkg):
    """
    Returns all package dependencies for which coverage should be generated - this includes the actual
    package recursive dependencies, as well as the recursive test dependencies for that package.
    """
    return self.recursive_pkg_deps[pkg].union(
        *[self.recursive_pkg_deps[test_import] for test_import in self.test_imports.get(pkg, ())])