def mockGetInstalledDistributions(packages):
    ret = []
    for pkg in packages:
        obj = type('', (), {})()
        obj.key = pkg
        ret.append(obj)
    return ret
def mockGetInstalledDistributions(packages):
    ret = []
    for pkg in packages:
        obj = type(, (), {})()
        obj.key = pkg
        ret.append(obj)
    return ret