def testInactive(self): t = self.createBasic() d = t.getBlockInfo("/Kernels/diff") d.included = False s = InputTreeWriter.inputTreeToString(t.root) self.checkFile(s, "gold/simple_diffusion_no_diff.i") k = t.getBlockInfo("/Kernels") k.included = False b = t.getBlockInfo("/BCs") b.included = False e = t.getBlockInfo("/Executioner") e.included = False s = InputTreeWriter.inputTreeToString(t.root) self.checkFile(s, "gold/simple_diffusion_inactive.i") d.included = True k.included = True b.included = True e.included = True s = InputTreeWriter.inputTreeToString(t.root) self.checkFile(s, "gold/simple_diffusion.i")
def testWriter(self): t = self.createBasic() s = InputTreeWriter.inputTreeToString(t.root) self.checkFile(s, "gold/simple_diffusion.i")