parameters: (test_path)
docstring: Checks whether all the parts of the test path are valid.
docstring_summary: Checks whether all the parts of the test path are valid.
docstring_tokens: Checks whether all the parts of the test path are valid .
function: def _ValidateTestPath(test_path):
    """Checks whether all the parts of the test path are valid."""
    # A test with a test path length over the max key length shouldn't be
    # created, since the test path is used in TestContainer keys.
    if len(test_path) > _MAX_TEST_PATH_LENGTH:
      raise BadRequestError('Test path too long: %s' % test_path)
  
    # Stars are reserved for test path patterns, so they can't be used in names.
    if '*' in test_path:
      raise BadRequestError('Illegal asterisk in test name.')
  
    for name in test_path.split('/'):
      _ValidateTestPathPartName(name)
function_tokens: def _ValidateTestPath ( test_path ) : # A test with a test path length over the max key length shouldn't be # created, since the test path is used in TestContainer keys. if len ( test_path ) > _MAX_TEST_PATH_LENGTH : raise BadRequestError ( 'Test path too long: %s' % test_path ) # Stars are reserved for test path patterns, so they can't be used in names. if '*' in test_path : raise BadRequestError ( 'Illegal asterisk in test name.' ) for name in test_path . split ( '/' ) : _ValidateTestPathPartName ( name )