def set_user_home(self, path):
    "Set the user's current home directory.\n\n        This will be unset when the unit test has finished.\n\n        Version Added:\n            3.0\n\n        Args:\n            path (unicode):\n                The new home directory.\n        "
    os.environ['HOME'] = path
Set the user's current home directory.

This will be unset when the unit test has finished.

Version Added:
    3.0

Args:
    path (unicode):
        The new home directory.
def set_user_home(self, path):
    "Set the user's current home directory.\n\n        This will be unset when the unit test has finished.\n\n        Version Added:\n            3.0\n\n        Args:\n            path (unicode):\n                The new home directory.\n        "
    os.environ['HOME'] = path