Esempio n. 1
0
def test_loading_random_csv_file():
    filename = os.path.join(dirpath, 'random_csv_file.csv')
    with nt.assert_raises(IOError) as cm:
        ProtochipsCSV(filename)
    nt.assert_equal(cm.exception.args[0], invalid_file_error)
Esempio n. 2
0
 def setUp(self):
     self.filename = os.path.join(dirpath, 'protochips_electrothermal.csv')
     self.pet = ProtochipsCSV(self.filename)
     if generate_numpy_file:
         create_numpy_file(self.filename.replace('.csv', '.npy'), self.pet)
def test_loading_random_csv_file():
    filename = os.path.join(dirpath, 'random_csv_file.csv')
    with pytest.raises(IOError) as cm:
        ProtochipsCSV(filename)
        cm.match(invalid_file_error)
Esempio n. 4
0
 def setUp(self):
     self.filename = os.path.join(dirpath, 'protochips_gas_cell.csv')
     self.pgc = ProtochipsCSV(self.filename)
     if generate_numpy_file:
         create_numpy_file(self.filename.replace('.csv', '.npy'), self.pgc)
 def setup_method(self, method):
     self.filename = os.path.join(dirpath, 'protochips_thermal.csv')
     self.pt = ProtochipsCSV(self.filename)
     if generate_numpy_file:
         create_numpy_file(self.filename.replace('.csv', '.npy'), self.pt)