

def testSingleShifts(self):
    self.term.singleShift2()
    self.term.write('Hi')
    ch = self.term.getCharacter(0, 0)
    ch.assertEqual(ch[0], 'H')
    self.assertEqual(ch[1].charset, G2)
    ch = self.term.getCharacter(1, 0)
    self.assertEqual(ch[0], 'i')
    self.assertEqual(ch[1].charset, G0)
    self.term.singleShift3()
    self.term.write('!!')
    ch = self.term.getCharacter(2, 0)
    self.assertEqual(ch[0], '!')
    self.assertEqual(ch[1].charset, G3)
    ch = self.term.getCharacter(3, 0)
    self.assertEqual(ch[0], '!')
    self.assertEqual(ch[1].charset, G0)

dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/conch/test/test_helper.py BufferTestCase.testSingleShifts/VarMisuse@40/49 `self`->`ch`