Ignore:
Timestamp:
08/11/10 11:42:54 (9 years ago)
Author:
astephen
Message:

Added in right-stripping of any annotations included in curly braces "{...}" on the
end of any input lines in NASA Ames.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nappy/trunk/tests/test_na_file_1001.py

    r5072 r7710  
    6363 
    6464 
     65    def test_na1001CurlyWithCurlyBraces(self): 
     66        "Tests an input file with curly braces." 
     67        cb_file = os.path.join(data_files, "1001_cb.na") 
     68        fin = nappy.openNAFile(cb_file) 
     69        fin.readData() 
     70        na_dict = fin.getNADict() 
     71        foutname = os.path.join(test_outputs, "test_1001_cb_rewritten.na") 
     72        fobj = nappy.openNAFile(foutname, mode="w", na_dict=na_dict) 
     73        fobj.write() 
     74        self.failUnless(isinstance(fobj, nappy.na_file.na_file.NAFile)) 
     75 
    6576if __name__ ==  "__main__": 
    6677 
Note: See TracChangeset for help on using the changeset viewer.