Changeset 29438 for branches/sc_branches/psps_testing/testers/batch_file.py
- Timestamp:
- Oct 15, 2010, 2:51:13 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/sc_branches/psps_testing/testers/batch_file.py
r29235 r29438 21 21 The purpose of this class is to test the common features of batch 22 22 files. Namely, they are: 23 - the form of the file name24 - the contents of the file (a gzipped tar archive file) and the form25 of the files contained in the archive23 - the form of the file name 24 - the contents of the file (a gzipped tar archive file) and the form 25 of the files contained in the archive 26 26 27 27 >>> print BatchFileTester("data/psut/ok/B00000010.tar.gz").test().success 28 False 29 >>> # Will be True one day... 28 True 30 29 """ 31 30 def __init__(self, filename): … … 59 58 """ 60 59 PsPsLogger.debug('Starting BatchFileTester object test') 61 TestReport. title('Batch file tests')60 TestReport.addSection('Batch file tests') 62 61 # Set up global test product 63 62 product = TestProduct() … … 166 165 Derived Requirement 3.3.1: The maximum size of a batch file 167 166 shall not exceed 100 gigabytes (TBR). 168 169 -> Test 1: The file is a valid tar gzipped file 170 -> Test 2: The file uncompresses in the <basename> directory 171 where <basename> is the file base name 172 -> Test 3: The tar gzipped file contains exactly one XML file 173 (named BatchManifest.xml) and exactly one FITS file. 167 168 Test 1: The file is a valid tar gzipped file 169 170 Test 2: The file uncompresses in the <basename> directory 171 where <basename> is the file base name 172 173 Test 3: The tar gzipped file contains exactly one XML file 174 (named BatchManifest.xml) and exactly one FITS file. 174 175 175 176 >>> batchFileTester = BatchFileTester('data/psut/ok/B00000010.tar.gz')
Note:
See TracChangeset
for help on using the changeset viewer.
