'Test that giving an empty password for plain auth succeeds.'

def test_plainAuthenticationEmptyPassword(self):

    loginArgs = []
    self.server.portal = self.portalFactory(loginArgs)
    self.server.dataReceived('EHLO\r\n')
    self.transport.clear()
    self.assertServerResponse('AUTH    LOGIN\r\n', [('334    ' + base64.b64encode('User    Name\x00').strip())])
    self.assertServerResponse((base64.b64encode('username') + '\r\n'), [('334    ' + base64.b64encode('Password\x00').strip())])
    self.assertServerResponse('\r\n', [])
    self.assertServerAuthenticated(loginArgs, password='')
