Changeset 3425 for nappy


Ignore:
Timestamp:
14/02/08 21:42:54 (12 years ago)
Author:
astephen
Message:

Updated unit tests in light of re-factoring the write method.

Location:
nappy/trunk/nappy/unit_tests
Files:
10 edited

Legend:

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

    r3414 r3425  
    1717 
    1818import nappy 
    19 import nappy.na_file.na_file_1001 
    2019 
    2120class NAFile1001_TestCase(unittest.TestCase): 
     
    3433    def test_write1001(self): 
    3534        "Tests writing FFI 1001." 
    36         self.fobj = nappy.na_file.na_file_1001.NAFile1001(self.outfile, mode="w")                
    37         self.fobj.write(na_dict=self.na_dict) 
     35        self.fobj = nappy.openNAFile(self.outfile, mode="w", na_dict=self.na_dict)               
     36        self.fobj.write() 
    3837        self.failUnless(isinstance(self.fobj, nappy.na_file.na_file.NAFile)) 
    3938 
  • nappy/trunk/nappy/unit_tests/test_na_file_1010.py

    r3414 r3425  
    1717 
    1818import nappy 
    19 import nappy.na_file.na_file_1010 
    2019 
    2120class NAFile1010_TestCase(unittest.TestCase): 
     
    3433    def test_write1010(self): 
    3534        "Tests writing FFI 1010." 
    36         self.fobj = nappy.na_file.na_file_1010.NAFile1010(self.outfile, mode="w")                
    37         self.fobj.write(na_dict=self.na_dict) 
     35        self.fobj = nappy.openNAFile(self.outfile, mode="w", na_dict=self.na_dict)               
     36        self.fobj.write() 
    3837        self.failUnless(isinstance(self.fobj, nappy.na_file.na_file.NAFile)) 
    3938 
  • nappy/trunk/nappy/unit_tests/test_na_file_1020.py

    r3414 r3425  
    1717 
    1818import nappy 
    19 import nappy.na_file.na_file_1020 
    2019 
    2120class NAFile1020_TestCase(unittest.TestCase): 
     
    3433    def test_write1020(self): 
    3534        "Tests writing FFI 1020." 
    36         self.fobj = nappy.na_file.na_file_1020.NAFile1020(self.outfile, mode="w")                
    37         self.fobj.write(na_dict=self.na_dict) 
     35        self.fobj = nappy.openNAFile(self.outfile, mode="w", na_dict=self.na_dict)               
     36        self.fobj.write() 
    3837        self.failUnless(isinstance(self.fobj, nappy.na_file.na_file.NAFile)) 
    3938 
  • nappy/trunk/nappy/unit_tests/test_na_file_2010.py

    r3414 r3425  
    1717 
    1818import nappy 
    19 import nappy.na_file.na_file_2010 
    2019 
    2120class NAFile2010_TestCase(unittest.TestCase): 
     
    3433    def test_write2010(self): 
    3534        "Tests writing FFI 2010." 
    36         self.fobj = nappy.na_file.na_file_2010.NAFile2010(self.outfile, mode="w")                
    37         self.fobj.write(na_dict=self.na_dict) 
     35        self.fobj = nappy.openNAFile(self.outfile, mode="w", na_dict=self.na_dict)               
     36        self.fobj.write() 
    3837        self.failUnless(isinstance(self.fobj, nappy.na_file.na_file.NAFile)) 
    3938 
  • nappy/trunk/nappy/unit_tests/test_na_file_2110.py

    r3414 r3425  
    1717 
    1818import nappy 
    19 import nappy.na_file.na_file_2110 
    2019 
    2120class NAFile2110_TestCase(unittest.TestCase): 
     
    3433    def test_write2110(self): 
    3534        "Tests writing FFI 2110." 
    36         self.fobj = nappy.na_file.na_file_2110.NAFile2110(self.outfile, mode="w")                
    37         self.fobj.write(na_dict=self.na_dict) 
     35        self.fobj = nappy.openNAFile(self.outfile, mode="w", na_dict=self.na_dict)               
     36        self.fobj.write() 
    3837        self.failUnless(isinstance(self.fobj, nappy.na_file.na_file.NAFile)) 
    3938 
  • nappy/trunk/nappy/unit_tests/test_na_file_2160.py

    r3414 r3425  
    1717 
    1818import nappy 
    19 import nappy.na_file.na_file_2160 
    2019 
    2120class NAFile2160_TestCase(unittest.TestCase): 
     
    3433    def test_write2160(self): 
    3534        "Tests writing FFI 2160." 
    36         self.fobj = nappy.na_file.na_file_2160.NAFile2160(self.outfile, mode="w")                
    37         self.fobj.write(na_dict=self.na_dict) 
     35        self.fobj = nappy.openNAFile(self.outfile, mode="w", na_dict=self.na_dict)               
     36        self.fobj.write() 
    3837        self.failUnless(isinstance(self.fobj, nappy.na_file.na_file.NAFile)) 
    3938 
  • nappy/trunk/nappy/unit_tests/test_na_file_2310.py

    r3414 r3425  
    1717 
    1818import nappy 
    19 import nappy.na_file.na_file_2310 
    2019 
    2120class NAFile2310_TestCase(unittest.TestCase): 
     
    3433    def test_write2310(self): 
    3534        "Tests writing FFI 2310." 
    36         self.fobj = nappy.na_file.na_file_2310.NAFile2310(self.outfile, mode="w")                
    37         self.fobj.write(na_dict=self.na_dict) 
     35        self.fobj = nappy.openNAFile(self.outfile, mode="w", na_dict=self.na_dict)               
     36        self.fobj.write() 
    3837        self.failUnless(isinstance(self.fobj, nappy.na_file.na_file.NAFile)) 
    3938 
  • nappy/trunk/nappy/unit_tests/test_na_file_3010.py

    r3414 r3425  
    1717 
    1818import nappy 
    19 import nappy.na_file.na_file_3010 
    2019 
    2120class NAFile3010_TestCase(unittest.TestCase): 
     
    3433    def test_write3010(self): 
    3534        "Tests writing FFI 3010." 
    36         self.fobj = nappy.na_file.na_file_3010.NAFile3010(self.outfile, mode="w")                
    37         self.fobj.write(na_dict=self.na_dict) 
     35        self.fobj = nappy.openNAFile(self.outfile, mode="w", na_dict=self.na_dict)               
     36        self.fobj.write() 
    3837        self.failUnless(isinstance(self.fobj, nappy.na_file.na_file.NAFile)) 
    3938 
  • nappy/trunk/nappy/unit_tests/test_na_file_4010.py

    r3414 r3425  
    1717 
    1818import nappy 
    19 import nappy.na_file.na_file_4010 
    2019 
    2120class NAFile4010_TestCase(unittest.TestCase): 
     
    3433    def test_write4010(self): 
    3534        "Tests writing FFI 4010." 
    36         self.fobj = nappy.na_file.na_file_4010.NAFile4010(self.outfile, mode="w")                
    37         self.fobj.write(na_dict=self.na_dict) 
     35        self.fobj = nappy.openNAFile(self.outfile, mode="w", na_dict=self.na_dict)               
     36        self.fobj.write() 
    3837        self.failUnless(isinstance(self.fobj, nappy.na_file.na_file.NAFile)) 
    3938 
  • nappy/trunk/nappy/unit_tests/test_na_file_template.txt

    r3414 r3425  
    1717 
    1818import nappy 
    19 import nappy.na_file.na_file_<FFI> 
    2019 
    2120class NAFile<FFI>_TestCase(unittest.TestCase): 
     
    3433    def test_write<FFI>(self): 
    3534        "Tests writing FFI <FFI>." 
    36         self.fobj = nappy.na_file.na_file_<FFI>.NAFile<FFI>(self.outfile, mode="w")              
    37         self.fobj.write(na_dict=self.na_dict) 
     35        self.fobj = nappy.openNAFile(self.outfile, mode="w", na_dict=self.na_dict)               
     36        self.fobj.write() 
    3837        self.failUnless(isinstance(self.fobj, nappy.na_file.na_file.NAFile)) 
    3938 
Note: See TracChangeset for help on using the changeset viewer.