

def test_setPrivateModes(self):
    '\n        Verify that L{helper.TerminalBuffer.setPrivateModes} changes the Set\n        Mode (SM) state to "set" for the private modes it is passed.\n        '
    expected = self.term.privateModes.copy()
    self.term.setPrivateModes([privateModes.SCROLL, privateModes.SCREEN])
    expected[privateModes.SCROLL] = True
    expected[privateModes.SCREEN] = True
    self.assertEqual(expected, self.term.privateModes)

dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/conch/test/test_helper.py BufferTestCase.test_setPrivateModes/original