def setUp(self): self.authUser = createUser("*****@*****.**","pass1") self.messenger = RecordingMessenger() for record in EmailRecord.objects.all(): record.delete()
def test_failsOnInvalidPassword(self): createUser('*****@*****.**','pass1') checker = DjangoAuthChecker() user= checker.requestAvatarId(UsernamePassword('*****@*****.**',"wrong_password")) self.assertFailure(user, UnauthorizedLogin)
def setUp(self): self.authUser = createUser("*****@*****.**","pass1")
def test_authenticatesValidUser(self): createUser('*****@*****.**','pass1') checker = DjangoAuthChecker() user = checker.requestAvatarId(UsernamePassword('*****@*****.**',"pass1")) user.addCallback(self._assertUserEqual,'*****@*****.**')