def METHOD_NAME(self, invite, mock_send):
    # Given
    group = Group.objects.get(name='Users')
    email = 'rsr-tests-email@akvo.org'
    user = self.create_user(email=email, password=self.password, is_active=True)
    Employment.objects.create(user=user, organisation=self.org, group=group)
    user_data = json.dumps({
        'organisation': self.org.id,
        'group': group.id,
        'email': email
    })
    data = {'user_data': user_data}
    # When
    response = self.c.post(
        '/rest/v1/invite_user/?format=json',
        json.dumps(data),
        content_type='application/json',
    )
    # Then
    self.assertEqual(response.status_code, 201)
    mock_send.assert_called_once()
    invite.assert_not_called()
    employment = Employment.objects.get(user__email=email, organisation_id=self.org.id)
    self.assertTrue(employment.is_approved)