def assert_has_paths(test_case, expected_paths, parent_path):
 missing_paths = []
 for path in expected_paths:
  if (not parent_path.preauthChild(path).exists()):
   missing_paths.append(path)
  if missing_paths:
   test_case.fail('Missing paths: {}'.format(missing_paths))

def assert_has_paths ( test_case , expected_paths , parent_path ) : missing_paths = [ ] for path in expected_paths : if ( not parent_path . preauthChild ( path ) . exists ( ) ) : missing_paths . append ( path ) if missing_paths : test_case . fail ( 'Missing paths: {}' . format ( missing_paths ) )
fail if any of the expected_paths are not existing relative paths of parent_path .