'If created with an account with a password, L{IRCProto} sends a
I{PASS} command before the I{NICK} and I{USER} commands.'

def test_authenticate(self):

    self.account.password = 'secret'
    self.proto.makeConnection(self.transport)
    self.assertEqualBufferValue(self.transport.value(), 'PASS    secret\r\nNICK    alice\r\nUSER    alice    foo    bar    :Twisted-IM    user\r\n')
