def test_strip_package(package_parts, module_file, expected): assert strip_package(package_parts, module_file) == expected