(filename)
| 632 | |
| 633 | |
| 634 | def removeTest(filename): |
| 635 | tmp = 'temp' |
| 636 | test_file = filename + '.irtst' |
| 637 | src_file = os.path.join(Config.data_dir, filename) |
| 638 | good_file = os.path.join(Config.data_dir, filename + '.irgd') |
| 639 | copyTestFile(filename, tmp) |
| 640 | stdin = """ |
| 641 | r Iptc.Application2.Byline |
| 642 | r Iptc.Application2.Caption |
| 643 | r Iptc.Application2.Keywords |
| 644 | r Iptc.Application2.Keywords |
| 645 | r Iptc.Application2.Keywords |
| 646 | r Iptc.Application2.CountryName |
| 647 | """.lstrip('\n').encode() |
| 648 | Executer('iptctest {tmp}', vars(), stdin=stdin) |
| 649 | e = Executer('iptcprint {tmp}', vars(), assert_returncode=None, decode_output=False) |
| 650 | save(e.stdout + b'\n', test_file) |
| 651 | return diffCheck(good_file, test_file, in_bytes=True) |
| 652 | |
| 653 | |
| 654 | def addModTest(filename): |
nothing calls this directly
no test coverage detected