def test_dryrun_optimisation_works(self): outs_dir = "." opts = pabot._options_for_dryrun({}, outs_dir) with pabot._with_modified_robot(): pabot.run("tests/recursion.robot", **opts) output = os.path.join(outs_dir, opts['output']) data = "" with open(output, "r") as f: data = f.read() self.assertTrue("No Operation" in data, data) self.assertFalse("Recursive" in data, data)