def patch_many(mocker):
    """
    Makes patching many attributes of the same object simpler
    """
    def patch_many(item, attributes, autospec=True, **kwargs):
        for attribute in attributes:
            mocker.patch.object(item, attribute, autospec=autospec, **kwargs)
    return patch_many