'IRC NICK command changes the nickname of a user.'

def test_nick(self):

    self.proto.makeConnection(self.transport)
    self.proto.dataReceived(':alice    JOIN    #group1\r\n')
    self.proto.dataReceived(':alice1    JOIN    #group1\r\n')
    self.proto.dataReceived(':alice1    NICK    newnick\r\n')
    self.proto.dataReceived(':alice3    NICK    newnick3\r\n')
    self.assertIn('newnick', self.proto._ingroups)
    self.assertNotIn('alice1', self.proto._ingroups)
