+ def test_persistence(self):
+
+ call = self.base_call.format(self.input_file) + " --persistence"
+ proc = subprocess.run(call,stdout=subprocess.PIPE,shell=True)
+ outs = proc.stdout.decode('utf-8')
+
+ test_file = "persistence_" + self.wikiq_out_name
+ baseline_file = os.path.join(".", self.baseline_output_dir, test_file)
+
+ test_lines = outs.splitlines(True)
+ baseline_lines = open(baseline_file)
+ for test, baseline in zip(test_lines, baseline_lines):
+ self.assertEqual(test,baseline)
+