'L{basic.BasicCredentialFactory.decode} raises L{LoginFailed} when
passed a response which is not valid base64-encoded text.'

def test_invalidCredentials(self):

    response = b64encode('123abc+/')
    self.assertRaises(error.LoginFailed, self.credentialFactory.decode, response, self.makeRequest())
