summaryrefslogtreecommitdiffstats
path: root/test cases/frameworks/6 gettext/data3/verify.py
blob: aff2f2eb611c4af6958c68a83f8d90333f038f60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env python3

import os
import sys

assert len(sys.argv) == 3

fname = sys.argv[1]
check_str = sys.argv[2]

assert os.path.isfile(fname)
with open(fname, 'r', encoding='utf-8') as f:
    assert check_str in f.read()