UseCases.FileSysObjects.branches.searchHookDifferencesOfPointsAndSlices package

Submodules

UseCases.FileSysObjects.branches.searchHookDifferencesOfPointsAndSlices.CallCase module

Create a plist, find side branches with single and multi-node hooks.

  • Data:

    see 'testdata.examples'
    

    refer also to the manual [filesystem-elements-as-objects]

  • Call:

    # 1. search and create a path for a side branch - single node hook
    sp = os.path.normpath('a/new/branch')
    rp = getTopFromPathString(sp,self._plist)
    
    # 2. search and create a path for a side branch by a multipoint hook as a slice
    sp = os.path.normpath('c/a/new/branch')
    rp = getTopFromPathString(sp,self._plist)
    
  • Result:

    1. expected = os.path.normpath(testdata.mypath+'/examples/a/new/branch')
    2. expected = os.path.normpath(testdata.mypath+'/examples/a/b0/c/a/new/branch')
    
class UseCases.FileSysObjects.branches.searchHookDifferencesOfPointsAndSlices.CallCase.UseCase(*args, **kargs)[source]

Bases: unittest.case.TestCase

testCase001()[source]
  1. search and create a path for a side branch by a single point hook
testCase002()[source]
  1. search and create a path for a side branch by a multipoint hook as a slice

Module contents