

def test_resetPrivateModes(self):
    '\n        Verify that L{helper.TerminalBuffer.resetPrivateModes} changes the Set\n        Mode (SM) state to "reset" for the private modes it is passed.\n        '
    expected = self.term.privateModes.copy()
    self.term.resetPrivateModes([privateModes.AUTO_WRAP, privateModes.CURSOR_MODE])
    del expected[privateModes.AUTO_WRAP]
    del expected[privateModes.CURSOR_MODE]
    self.assertEqual(expected, self.term.privateModes)

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