#NEWLINE# def directoryOffsetLengthTest1( ) : #NEWLINE# #INDENT# "\n    Valid offsets and lengths.\n\n    >>> doctestFunction1(testDirectoryBorders, directoryOffsetLengthTest1())\n    (None, 'PASS')\n    " #NEWLINE# ( header , directory ) = defaultTestData ( header = True , directory = True ) #NEWLINE# offset = header [ 'length' ] #NEWLINE# for table in directory : #NEWLINE# #INDENT# table [ 'offset' ] = offset #NEWLINE# table [ 'compLength' ] = 1 #NEWLINE# offset += 1 #NEWLINE# #UNINDENT# header [ 'length' ] += len ( directory ) #NEWLINE# return ( packTestHeader ( header ) + packTestDirectory ( directory ) )