コード例 #1
0
 def test_read_bad_01(self):
     model = BDF(debug=False)
     model.active_filenames = ['fake.file']
     with self.assertRaises(IOError):
         model._open_file('fake.file')
コード例 #2
0
ファイル: test_read_write.py プロジェクト: umvarma/pynastran
 def test_read_bad_01(self):
     model = BDF()
     model.active_filenames = ['fake.file']
     with self.assertRaises(IOError):
         model._open_file('fake.file')
コード例 #3
0
ファイル: test_read_write.py プロジェクト: hurlei/pyNastran
 def test_read_bad_01(self):
     """tests you can't read the same file twice"""
     model = BDF(log=log, debug=False)
     model.active_filenames = ['fake.file']
     with self.assertRaises(IOError):
         model._open_file('fake.file')
コード例 #4
0
 def test_read_bad_01(self):
     """tests you can't read the same file twice"""
     model = BDF(log=log, debug=False)
     model.active_filenames = ['fake.file']
     with self.assertRaises(IOError):
         model._open_file('fake.file')