def test_011_Save_01(self): from CGNS.MAP import EmbeddedCHLone as CHLone self.unlink(self.HDF01) CHLone.save(self.HDF01, self.T) v = self.getDump(self.HDF01, '/{Base}/{Zone}', '[0,1]', int) self.assertEqual(v, 7) v = self.getDump(self.HDF01, '/{Base}/{Zone}', '[1,1]', int) self.assertEqual(v, 6)
def test_012_Save_02(self): from CGNS.MAP import EmbeddedCHLone as CHLone self.unlink(self.HDF02) CHLone.save(self.HDF02, self.T) self.chmod(self.HDF02, 0) self.assertRaisesRegexp(CHLone.CHLoneException, "[100].*", CHLone.save, self.HDF02, self.T, flags=CHLone.FUPDATE) self.chmod(self.HDF02, 511) self.unlink(self.HDF02)
def test_018_Load(self): from CGNS.MAP import EmbeddedCHLone as CHLone CHLone.save(self.HDF01, self.T) (t, l, p) = CHLone.load(self.HDF01)