Ejemplo n.º 1
0
 def test_FileIO_FileSettings(self):
     io = file_io._FileIO()
     self._BuildTestFileIOObject(io)
     settings = io._FileSettings('kratos.h5')
     self.assertEqual(settings['file_name'], 'kratos.h5')
     self.assertEqual(settings['file_access_mode'], 'exclusive')
     self.assertEqual(settings['file_driver'], 'core')
     self.assertEqual(settings['echo_level'], 0)
Ejemplo n.º 2
0
 def test_FileIO_FileSettings(self):
     io = file_io._FileIO()
     self._BuildTestFileIOObject(io)
     settings = io._FileSettings('kratos.h5')
     self.assertIsInstance(settings, KratosMultiphysics.Parameters)
     self.assertEqual(settings['file_name'].GetString(), 'kratos.h5')
     self.assertEqual(settings['file_access_mode'].GetString(), 'exclusive')
     self.assertEqual(settings['file_driver'].GetString(), 'core')
     self.assertEqual(settings['echo_level'].GetInt(), 0)