'When L{IRCProto} is connected to a transport, it sends I{NICK} and
I{USER} commands with the username from the account object.'

def test_login(self):

    self.proto.makeConnection(self.transport)
    self.assertEqualBufferValue(self.transport.value(), 'NICK    alice\r\nUSER    alice    foo    bar    :Twisted-IM    user\r\n')
