'Verify that L{helper.TerminalBuffer.setPrivateModes} changes the Set
Mode (SM) state to "set" for the private modes it is passed.'

def test_setPrivateModes(self):

    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)
