'L{ServerProtocol.setModes} writes a control sequence
containing the requested modes and ending in the
L{CSFinalByte.SM}.'

def test_setModes(self):

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