

def testEraseToLineBeginning(self):
    s = 'Hello, world.'
    self.term.write(s)
    self.term.cursorBackward(5)
    self.term.eraseToLineBeginning()
    self.assertEqual(str(self.term), ((s[(- 4):].rjust(len(s)) + '\n') + ('\n' * (HEIGHT - 2))))

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