

def testEraseLine(self):
    s1 = 'line 1'
    s2 = 'line 2'
    s3 = 'line 3'
    self.term.write(('\n'.join((s1, s2, s3)) + '\n'))
    self.term.cursorPosition(1, 1)
    self.term.eraseLine()
    self.assertEqual(str(self.term), (((((s1 + '\n') + '\n') + s3) + '\n') + ('\n' * (HEIGHT - 4))))

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