'IRC QUIT command removes a user from all IRC channels.'

def test_quit(self):

    self.proto.makeConnection(self.transport)
    self.proto.dataReceived(':alice1    JOIN    #group1\r\n')
    self.assertIn('group1', self.proto._ingroups['alice1'])
    self.assertNotIn('group2', self.proto._ingroups['alice1'])
    self.proto.dataReceived(':alice1    JOIN    #group3\r\n')
    self.assertIn('group3', self.proto._ingroups['alice1'])
    self.proto.dataReceived(':alice1    QUIT\r\n')
    self.assertTrue((len(self.proto._ingroups['alice1']) == 0))
    self.proto.dataReceived(':alice3    QUIT\r\n')
