Changeset 7186 for main/waeup.sirp/trunk/src/waeup/sirp/utils/tests
- Timestamp:
- 24 Nov 2011, 11:31:04 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/utils/tests/test_helpers.py
r7137 r7186 54 54 55 55 def test_handle_not_existing_path(self): 56 result = helpers.remove FileOrDirectory(self.non_file)56 result = helpers.remove_file_or_directory(self.non_file) 57 57 self.assertTrue(result is None) 58 58 return 59 59 60 60 def test_handle_dir(self): 61 helpers.remove FileOrDirectory(self.dirpath)61 helpers.remove_file_or_directory(self.dirpath) 62 62 self.assertFalse( 63 63 os.path.exists(self.dirpath) … … 66 66 67 67 def test_handle_file(self): 68 helpers.remove FileOrDirectory(self.filepath)68 helpers.remove_file_or_directory(self.filepath) 69 69 self.assertFalse( 70 70 os.path.exists(self.filepath) … … 73 73 74 74 class CopyFileSystemTreeTestCase(unittest.TestCase): 75 # Test edge cases of copy FileSystemTree().75 # Test edge cases of copy_filesystem_tree(). 76 76 # 77 77 # This is a typical case of tests not written as doctest as it is … … 94 94 95 95 def test_source_and_dst_existing(self): 96 helpers.copy FileSystemTree(self.existing_src, self.existing_dst)96 helpers.copy_filesystem_tree(self.existing_src, self.existing_dst) 97 97 self.assertTrue( 98 98 os.path.exists( … … 105 105 self.assertRaises( 106 106 ValueError, 107 helpers.copy FileSystemTree,107 helpers.copy_filesystem_tree, 108 108 self.not_existing_dir, 109 109 self.existing_dst … … 114 114 self.assertRaises( 115 115 ValueError, 116 helpers.copy FileSystemTree,116 helpers.copy_filesystem_tree, 117 117 self.existing_src, 118 118 self.not_existing_dir … … 123 123 self.assertRaises( 124 124 ValueError, 125 helpers.copy FileSystemTree,125 helpers.copy_filesystem_tree, 126 126 self.filepath, 127 127 self.existing_dst … … 132 132 self.assertRaises( 133 133 ValueError, 134 helpers.copy FileSystemTree,134 helpers.copy_filesystem_tree, 135 135 self.existing_src, 136 136 self.filepath
Note: See TracChangeset for help on using the changeset viewer.