NCCOOS Trac Projects: Top | Web | Platforms | Processing | Viz | Sprints | Sandbox | (Wind)

Changeset 377

Show
Ignore:
Timestamp:
09/30/10 10:01:42
Author:
cbc
Message:

Clean up doctest comments.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • spongenet/trunk/spongenet/expand.py

    r373 r377  
    1010   > python expand.py --test 
    1111 
    12 Test silent import. 
     12Test silent import: 
    1313 
    1414>>> import expand 
     
    3838    Run doctests as unittest suite. 
    3939 
    40     Test silent import 
     40    Test silent import: 
    4141 
    4242    >>> from expand import _test 
     
    5555    Return the configuration file path from the command line. 
    5656 
    57     Supply too few arguments on command line. 
     57    Supply too few arguments on command line: 
    5858 
    5959    >>> save_stdout = sys.stdout 
     
    6666    True 
    6767 
    68     Supply too many arguments on the command line. 
     68    Supply too many arguments on the command line: 
    6969 
    7070    >>> save_stdout = sys.stdout 
     
    7777    True 
    7878 
    79     Supply non-file argument. 
     79    Supply non-file argument: 
    8080 
    8181    >>> save_stdout = sys.stdout 
     
    9292    True 
    9393 
    94     Supply nonexistent file argument. 
     94    Supply nonexistent file argument: 
    9595 
    9696    >>> save_stdout = sys.stdout 
     
    107107    True 
    108108 
    109     Supply valid config path argument. 
     109    Supply valid config path argument: 
    110110 
    111111    >>> _config_path = os.path.join( 
     
    142142    Return the configuration from a file. 
    143143 
    144     Execute empty configuration. 
     144    Execute empty configuration: 
    145145 
    146146    >>> _config_path = os.path.join( 
     
    156156    >>> xmlfile_pattern 
    157157 
    158     Execute nonexistent configuration. 
     158    Execute nonexistent configuration: 
    159159 
    160160    >>> save_stdout = sys.stdout 
     
    176176    >>> xmlfile_pattern 
    177177 
    178     Execute bad configuration. 
     178    Execute bad configuration: 
    179179 
    180180    >>> save_stdout = sys.stdout 
     
    197197    >>> xmlfile_pattern 
    198198 
    199     Execute valid configuration. 
     199    Execute valid configuration: 
    200200 
    201201    >>> _config_path = os.path.join( 
     
    246246    Combine the XML sponge data files from a subdirectory. 
    247247 
    248     Combine test subdirectory. 
     248    Combine test subdirectory: 
    249249 
    250250    >>> xmlref_path = os.path.join( 
     
    307307    Expand zipped sponge data files. 
    308308 
    309     Expand valid tree. 
     309    Expand valid tree: 
    310310 
    311311    >>> _config_path = os.path.join( 
     
    403403    Run module as script. 
    404404 
    405     Supply incomplete config file. 
     405    Supply incomplete config file: 
    406406 
    407407    >>> save_stdout = sys.stdout 
  • spongenet/trunk/spongenet/parse.py

    r374 r377  
    1010   > python parse.py --test 
    1111 
    12 Test silent import. 
     12Test silent import: 
    1313 
    1414>>> import parse 
     
    4040    Run doctests as unittest suite. 
    4141 
    42     Test silent import 
     42    Test silent import: 
    4343 
    4444    >>> from parse import _test 
     
    5757    Return the XML document file path from the command line. 
    5858 
    59     Supply too few arguments on command line. 
     59    Supply too few arguments on command line: 
    6060 
    6161    >>> save_stdout = sys.stdout 
     
    6868    True 
    6969 
    70     Supply too many arguments on the command line. 
     70    Supply too many arguments on the command line: 
    7171 
    7272    >>> save_stdout = sys.stdout 
     
    7979    True 
    8080 
    81     Supply non-file argument. 
     81    Supply non-file argument: 
    8282 
    8383    >>> save_stdout = sys.stdout 
     
    9494    True 
    9595 
    96     Supply nonexistent file argument. 
     96    Supply nonexistent file argument: 
    9797 
    9898    >>> save_stdout = sys.stdout 
     
    109109    True 
    110110 
    111     Supply valid XML document path argument. 
     111    Supply valid XML document path argument: 
    112112 
    113113    >>> _xmldoc_path = os.path.join( 
     
    145145    Return the XML document as a string from a file at path. 
    146146 
    147     Get the test reference data. 
     147    Get the test reference data: 
    148148 
    149149    >>> xmlref = os.path.join( 
     
    156156    >>> xml_doc_md5s = namespace["XML_DOC_MD5S"] 
    157157 
    158     Pick a test document. 
     158    Pick a test document: 
    159159 
    160160    >>> xmldoc_glob = os.path.join( 
     
    165165    >>> _xmldoc = xmldoc(_xmldoc_path) 
    166166 
    167     Verify the test document matches the reference data. 
     167    Verify the test document matches the reference data: 
    168168 
    169169    >>> xmldoc_lines = _xmldoc.splitlines() 
     
    191191    A data point for a sponge sensor sample." 
    192192 
    193     Instantiate a valid Point object. 
     193    Instantiate a valid Point object: 
    194194 
    195195    >>> xmldoc_glob = os.path.join( 
     
    235235    A collection of data points for a sponge sensor sample. 
    236236 
    237     Instantiate a valid Sensor object. 
     237    Instantiate a valid Sensor object: 
    238238 
    239239    >>> xmldoc_glob = os.path.join( 
     
    289289    Data from a collection of sponge sensors for a single time sample. 
    290290 
    291     Instantiate a valid Device object. 
     291    Instantiate a valid Device object: 
    292292 
    293293    >>> xmldoc_glob = os.path.join( 
     
    368368    A collection of sponge data samples from a collection of sensors. 
    369369 
    370     Instantiate a valid Data object. 
     370    Instantiate a valid Data object: 
    371371 
    372372    >>> xmldoc_glob = os.path.join( 
     
    399399    Run module as script. 
    400400 
    401     Test silent import. 
     401    Test silent import: 
    402402 
    403403    >>> from parse import _main