Exemplo n.º 1
0
 def test_invitation_contains_link(self):
     user = inviter.RawUser('John Donne', '*****@*****.**')
     inviter.send_user_invitation(user)
     eq_(len(mail.outbox), 1)
     ok_(mail.outbox[0].body)
Exemplo n.º 2
0
 def test_invitation_is_successful(self):
     user = inviter.RawUser('John Donne', '*****@*****.**')
     inviter.send_user_invitation(user)
     eq_(len(mail.outbox), 1)
     eq_(mail.outbox[0].to, ['*****@*****.**'])