def METHOD_NAME(self):
    roles = [WELLS_VIEWER_ROLE, WELLS_EDIT_ROLE]
    for role in roles:
        Group.objects.get_or_create(name=role)
    user, _created = User.objects.get_or_create(username='test')
    user.profile.username = user.username
    user.save()
    roles_to_groups(user, roles)
    self.client.force_authenticate(user)