def test_copy(self): screen = Screen('hello world!!') screen.copy(start=4, end=8) self.assertEquals('o wo', screen.clipboard) self.assertEquals('hello world!!', screen.text)
def test_paste(self): screen = Screen('hello world!!') screen.copy(start=0, end=5) screen.paste(screen.length()) self.assertEquals('hello world!!hello', screen.text)