'test PLAIN failed authentication'

def skip_plain_inauth(self):

    server = self.socket(zmq.DEALER)
    server.identity = 'IDENT'
    client = self.socket(zmq.DEALER)
    self.sockets.extend([server, client])
    client.plain_username = USER
    client.plain_password = 'incorrect'
    server.plain_server = True
    self.assertEqual(server.mechanism, zmq.PLAIN)
    self.assertEqual(client.mechanism, zmq.PLAIN)
    self.start_zap()
    iface = 'tcp://127.0.0.1'
    port = server.bind_to_random_port(iface)
    client.connect(('%s:%i' % (iface, port)))
    client.send('ping')
    server.rcvtimeo = 250
    self.assertRaisesErrno(zmq.EAGAIN, server.recv)
    self.stop_zap()
