Example #1
0
 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)
Example #2
0
 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)
Example #3
0
 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)
Example #4
0
 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)