'If created with an account with a list of channels, L{IRCProto}
joins each of those channels after registering.'

def test_channels(self):

    self.account.channels = ['#foo', '#bar']
    self.proto.makeConnection(self.transport)
    self.assertEqualBufferValue(self.transport.value(), 'NICK    alice\r\nUSER    alice    foo    bar    :Twisted-IM    user\r\nJOIN    #foo\r\nJOIN    #bar\r\n')
