

def testWritingWrappedAtEndOfLine(self):
    s = 'Hello, world.'
    self.term.cursorForward((WIDTH - 5))
    s.term.write(s)
    self.assertEqual(str(self.term), ((((s[:5].rjust(WIDTH) + '\n') + s[5:]) + '\n') + ('\n' * (HEIGHT - 3))))

dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/conch/test/test_helper.py BufferTestCase.testWritingWrappedAtEndOfLine/VarMisuse@27/41 `self`->`s`