Ignore:
Timestamp:
24 Nov 2011, 11:31:04 (13 years ago)
Author:
Henrik Bettermann
Message:

Rename functions according to the WAeUP style guide:

functions and methods with property decorator with underscore

methods with CamelCase

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/utils/tests/test_helpers.py

    r7137 r7186  
    5454
    5555    def test_handle_not_existing_path(self):
    56         result = helpers.removeFileOrDirectory(self.non_file)
     56        result = helpers.remove_file_or_directory(self.non_file)
    5757        self.assertTrue(result is None)
    5858        return
    5959
    6060    def test_handle_dir(self):
    61         helpers.removeFileOrDirectory(self.dirpath)
     61        helpers.remove_file_or_directory(self.dirpath)
    6262        self.assertFalse(
    6363            os.path.exists(self.dirpath)
     
    6666
    6767    def test_handle_file(self):
    68         helpers.removeFileOrDirectory(self.filepath)
     68        helpers.remove_file_or_directory(self.filepath)
    6969        self.assertFalse(
    7070            os.path.exists(self.filepath)
     
    7373
    7474class CopyFileSystemTreeTestCase(unittest.TestCase):
    75     # Test edge cases of copyFileSystemTree().
     75    # Test edge cases of copy_filesystem_tree().
    7676    #
    7777    # This is a typical case of tests not written as doctest as it is
     
    9494
    9595    def test_source_and_dst_existing(self):
    96         helpers.copyFileSystemTree(self.existing_src, self.existing_dst)
     96        helpers.copy_filesystem_tree(self.existing_src, self.existing_dst)
    9797        self.assertTrue(
    9898            os.path.exists(
     
    105105        self.assertRaises(
    106106            ValueError,
    107             helpers.copyFileSystemTree,
     107            helpers.copy_filesystem_tree,
    108108            self.not_existing_dir,
    109109            self.existing_dst
     
    114114        self.assertRaises(
    115115            ValueError,
    116             helpers.copyFileSystemTree,
     116            helpers.copy_filesystem_tree,
    117117            self.existing_src,
    118118            self.not_existing_dir
     
    123123        self.assertRaises(
    124124            ValueError,
    125             helpers.copyFileSystemTree,
     125            helpers.copy_filesystem_tree,
    126126            self.filepath,
    127127            self.existing_dst
     
    132132        self.assertRaises(
    133133            ValueError,
    134             helpers.copyFileSystemTree,
     134            helpers.copy_filesystem_tree,
    135135            self.existing_src,
    136136            self.filepath
Note: See TracChangeset for help on using the changeset viewer.