'Test that a response which is not properly Base64 encoded results in
the appropriate error code.'

def test_invalidBase64EncodedResponse(self):

    loginArgs = []
    self.server.portal = self.portalFactory(loginArgs)
    self.server.dataReceived('EHLO\r\n')
    self.server.dataReceived('AUTH    LOGIN\r\n')
    self.assertServerResponse('x\r\n', ['501    Syntax    error    in    parameters    or    arguments'])
    self.assertEqual(loginArgs, [])
