'The user has been greeted with the four messages that are (usually)
considered to start an IRC session.
Asserts that the required responses were received.'

def _assertGreeting(self, user):

    response = self._response(user)
    expected = [irc.RPL_WELCOME, irc.RPL_YOURHOST, irc.RPL_CREATED, irc.RPL_MYINFO]
    for (prefix, command, args) in response:
        if (command in expected):
            expected.remove(command)
    self.assertFalse(expected, ('Missing    responses    for    %r' % (expected,)))
