def METHOD_NAME(self, mock_source):
    def format_desc(x):
        return f"desc{x}"
    source = packages.create_dependency_source("blynklib", format_desc=format_desc)
    with source as files:
        if mock_source.has_init:
            assert isinstance(files, Path)
            assert mock_source.pkg.name == files.name
        else:
            assert isinstance(files, list)
            file_names = [(p.name, s.name) for p, s in files]
            file_names = list(sum(file_names, ()))
            assert sorted(["file.py", "file.pyi", "module.py", "module.pyi"]) == sorted(
                file_names
            )