'L{ServerProtocol.resetModes} writes the control sequence
ending in the L{CSFinalByte.RM}.'

def test_resetModes(self):

    modesToSet = [modes.KAM, modes.IRM, modes.LNM]
    self.protocol.resetModes(modesToSet)
    self.assertEqual(self.transport.value(), ((self.CSI + ';'.join(map(intToBytes, modesToSet))) + CSFinalByte.RM.value))
