Beispiel #1
0
 def _CopyFolder(self, file_browser):
     """Create a folder and then copy and paste it to itself."""
     file_browser.CreateDirectory('apples')
     file_browser.Select('apples')
     file_browser.Copy()
     file_browser.ChangeDirectory('apples')
     file_browser.Paste()
     self.assertTrue(file_browser.Select('apples'))
 def _CutFolder(self, file_browser):
     """Create two folders and cut and paste one inside the other."""
     top_directory = file_browser.CurrentDirectory()
     file_browser.CreateDirectory('apples')
     file_browser.Select('apples')
     file_browser.Cut()
     file_browser.CreateDirectory('oranges')
     file_browser.ChangeDirectory('oranges')
     file_browser.Paste()
     self.assertTrue(file_browser.Select('apples'))
     file_browser.ChangeDirectory(top_directory)
     self.assertFalse(file_browser.Select('apples'))