

def test_invite_new_user(self):
    resp = self.client.post('/invitations/invite/', {
        'email': 'somebody@example.com',
        'message': 'Message body',
    }, follow=True)
    self.assertContains(resp, 'Invitation to join sent to somebody@example.com')

dataset/ETHPy150Open amarandon/smeuhsocial/apps/friends/tests/test_views.py TestInvite.test_invite_new_user/original