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

def test_invalidEncoding(self):

    response = 'x'
    self.assertRaises(error.LoginFailed, self.credentialFactory.decode, response, self.makeRequest())
