def test_invite(self):
        response = self.client.post('/%s/' % self.her.username, {
            'to_user': self.her.username,
            'action': u'invite',
            'message': u"Let's be friends!",
        }, follow=True)

        self.assertContains(
            response,
            "Friendship requested with %s" % self.her.username)
dataset/ETHPy150Open amarandon/smeuhsocial/apps/friends/tests/test_views.py/TestFriends.test_invite/original