def METHOD_NAME(self):
    groups = ["Administrators", "Users"]
    win_error = WinError()
    win_error.winerror = 5
    effect = [win_error, groups]
    with patch("win32net.NetUserGetLocalGroups", side_effect=effect):
        ret = win_functions.get_user_groups("Administrator")
        self.assertListEqual(groups, ret)