'If L{IRCClient} receives I{RPL_MOTD} and I{RPL_ENDOFMOTD} without
receiving I{RPL_MOTDSTART}, L{IRCClient.receivedMOTD} is still
called with a list of MOTD lines.'

def test_withoutMOTDSTART(self):

    lines = [':host.name    372    nickname    :-    Welcome    to    host.name', ':host.name    376    nickname    :End    of    /MOTD    command.']
    for L in lines:
        self.client.dataReceived((L + '\r\n'))
    self.assertEqual(self.client.calls, [('receivedMOTD', {'motd': ['Welcome    to    host.name']})])
