def METHOD_NAME(self, mock_request):
    mock_request.side_effect = (_mock_create_session_responses(self)
    + [self.tableau_instance.get_groups_for_user_id_response()])
    group_tuples = get_tableau_groups_for_user(self.domain, 'pbeasley')
    self.assertEqual(len(group_tuples), 2)
    self.assertEqual(group_tuples[0].name, 'group1')
    self.assertEqual(group_tuples[1].id, 'c4d5e')