

def testEraseToDisplayBeginning(self):
    s1 = 'Hello world'
    s2 = 'Goodbye world'
    self.term.write('\n'.join((s1, s1)))
    self.term.cursorPosition(5, 1)
    self.term.eraseToDisplayBeginning()
    self.assertEqual(str(self.term), ((('\n' + s2[6:].rjust(len(s2))) + '\n') + ('\n' * (HEIGHT - 3))))

dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/conch/test/test_helper.py BufferTestCase.testEraseToDisplayBeginning/VarMisuse@31/49 `s2`->`s1`