Changeset 377
- Timestamp:
- 09/30/10 10:01:42
- Files:
-
- spongenet/trunk/spongenet/expand.py (modified) (14 diffs)
- spongenet/trunk/spongenet/parse.py (modified) (15 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
spongenet/trunk/spongenet/expand.py
r373 r377 10 10 > python expand.py --test 11 11 12 Test silent import .12 Test silent import: 13 13 14 14 >>> import expand … … 38 38 Run doctests as unittest suite. 39 39 40 Test silent import 40 Test silent import: 41 41 42 42 >>> from expand import _test … … 55 55 Return the configuration file path from the command line. 56 56 57 Supply too few arguments on command line .57 Supply too few arguments on command line: 58 58 59 59 >>> save_stdout = sys.stdout … … 66 66 True 67 67 68 Supply too many arguments on the command line .68 Supply too many arguments on the command line: 69 69 70 70 >>> save_stdout = sys.stdout … … 77 77 True 78 78 79 Supply non-file argument .79 Supply non-file argument: 80 80 81 81 >>> save_stdout = sys.stdout … … 92 92 True 93 93 94 Supply nonexistent file argument .94 Supply nonexistent file argument: 95 95 96 96 >>> save_stdout = sys.stdout … … 107 107 True 108 108 109 Supply valid config path argument .109 Supply valid config path argument: 110 110 111 111 >>> _config_path = os.path.join( … … 142 142 Return the configuration from a file. 143 143 144 Execute empty configuration .144 Execute empty configuration: 145 145 146 146 >>> _config_path = os.path.join( … … 156 156 >>> xmlfile_pattern 157 157 158 Execute nonexistent configuration .158 Execute nonexistent configuration: 159 159 160 160 >>> save_stdout = sys.stdout … … 176 176 >>> xmlfile_pattern 177 177 178 Execute bad configuration .178 Execute bad configuration: 179 179 180 180 >>> save_stdout = sys.stdout … … 197 197 >>> xmlfile_pattern 198 198 199 Execute valid configuration .199 Execute valid configuration: 200 200 201 201 >>> _config_path = os.path.join( … … 246 246 Combine the XML sponge data files from a subdirectory. 247 247 248 Combine test subdirectory .248 Combine test subdirectory: 249 249 250 250 >>> xmlref_path = os.path.join( … … 307 307 Expand zipped sponge data files. 308 308 309 Expand valid tree .309 Expand valid tree: 310 310 311 311 >>> _config_path = os.path.join( … … 403 403 Run module as script. 404 404 405 Supply incomplete config file .405 Supply incomplete config file: 406 406 407 407 >>> save_stdout = sys.stdout spongenet/trunk/spongenet/parse.py
r374 r377 10 10 > python parse.py --test 11 11 12 Test silent import .12 Test silent import: 13 13 14 14 >>> import parse … … 40 40 Run doctests as unittest suite. 41 41 42 Test silent import 42 Test silent import: 43 43 44 44 >>> from parse import _test … … 57 57 Return the XML document file path from the command line. 58 58 59 Supply too few arguments on command line .59 Supply too few arguments on command line: 60 60 61 61 >>> save_stdout = sys.stdout … … 68 68 True 69 69 70 Supply too many arguments on the command line .70 Supply too many arguments on the command line: 71 71 72 72 >>> save_stdout = sys.stdout … … 79 79 True 80 80 81 Supply non-file argument .81 Supply non-file argument: 82 82 83 83 >>> save_stdout = sys.stdout … … 94 94 True 95 95 96 Supply nonexistent file argument .96 Supply nonexistent file argument: 97 97 98 98 >>> save_stdout = sys.stdout … … 109 109 True 110 110 111 Supply valid XML document path argument .111 Supply valid XML document path argument: 112 112 113 113 >>> _xmldoc_path = os.path.join( … … 145 145 Return the XML document as a string from a file at path. 146 146 147 Get the test reference data .147 Get the test reference data: 148 148 149 149 >>> xmlref = os.path.join( … … 156 156 >>> xml_doc_md5s = namespace["XML_DOC_MD5S"] 157 157 158 Pick a test document .158 Pick a test document: 159 159 160 160 >>> xmldoc_glob = os.path.join( … … 165 165 >>> _xmldoc = xmldoc(_xmldoc_path) 166 166 167 Verify the test document matches the reference data .167 Verify the test document matches the reference data: 168 168 169 169 >>> xmldoc_lines = _xmldoc.splitlines() … … 191 191 A data point for a sponge sensor sample." 192 192 193 Instantiate a valid Point object .193 Instantiate a valid Point object: 194 194 195 195 >>> xmldoc_glob = os.path.join( … … 235 235 A collection of data points for a sponge sensor sample. 236 236 237 Instantiate a valid Sensor object .237 Instantiate a valid Sensor object: 238 238 239 239 >>> xmldoc_glob = os.path.join( … … 289 289 Data from a collection of sponge sensors for a single time sample. 290 290 291 Instantiate a valid Device object .291 Instantiate a valid Device object: 292 292 293 293 >>> xmldoc_glob = os.path.join( … … 368 368 A collection of sponge data samples from a collection of sensors. 369 369 370 Instantiate a valid Data object .370 Instantiate a valid Data object: 371 371 372 372 >>> xmldoc_glob = os.path.join( … … 399 399 Run module as script. 400 400 401 Test silent import .401 Test silent import: 402 402 403 403 >>> from parse import _main