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

def test_setPrivateModes(self):

    privateModesToSet = [privateModes.ERROR, privateModes.COLUMN, privateModes.ORIGIN]
    self.protocol.setModes(privateModesToSet)
    self.assertEqual(self.transport.value(), ((self.CSI + ';'.join(map(intToBytes, privateModesToSet))) + CSFinalByte.SM.value))
