'Calling C{login} with incorrect credentials (in this case a wrong
password) causes L{error.UnauthorizedLogin} to be raised.'

def test_failedLoginPassword(self):

    login = self.failureResultOf(self.portal.login(credentials.UsernamePassword('bob', 'h3llo'), self, ITestable))
    self.assertTrue(login)
    self.assertEqual(error.UnauthorizedLogin, login.type)
