def test_send_invitation(self):
        i = Invitation.objects.create(community=self.community,
                                      created_by=self.members[0],
                                      email="xxx@xyz.com")
        i.send(self.members[0])

        self.assertEqual(len(mail.outbox), 1)
        self.assertIn(self.community.name, mail.outbox[0].subject)
        self.assertIn(i.get_absolute_url(), mail.outbox[0].body)