p='output/article.md' a=open(p,encoding='utf-8').read() reps=[ ("No one at Kingy has tested the product. This piece is based on the vendor's announcement, pricing and data policy, plus one small independent review.", "Nobody at Kingy has tested it. This piece relies on vendor documents and one small independent review."), ("The vendor also says that this measures only draft production. It doesn't include the time a person spends checking the draft, and it doesn't show how much time is saved from start to finish. No task-by-task results have been published", "By the vendor's own description, that covers only drafting. It leaves out human checking, doesn't show end-to-end time saved, and no task-level results are published"), ("One wrong citation in six is too small a sample to measure an error rate. Still, it shows what to watch for.", "Six files can't establish an error rate, but the miss shows what to watch for."), ("Adding seats doesn't add uploads. Five people share the same 500 uploads a month that three people would.", "Adding seats doesn't add uploads."), ("New customers can join a waitlist but can't start using it today.","New customers can only join a waitlist."), ] for o,n in reps: assert o in a, o a=a.replace(o,n) open(p,'w',encoding='utf-8').write(a)