diff options
author | strank <strank@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2008-07-23 19:44:50 +0000 |
---|---|---|
committer | strank <strank@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2008-07-23 19:44:50 +0000 |
commit | 9878aff2fb3421f1a31681d361cc24d1ef3e1a5b (patch) | |
tree | 8b1cb8accd2b1843d83838796a738e1b4a93faa3 /test/test_language.py | |
parent | 83816c45579ffbfab7206e21818ecdd12ddcd8f6 (diff) | |
download | docutils-abolish-userstring-haskey@5608.tar.gz |
undo accidental commit to trunkabolish-userstring-haskey@5608
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@5608 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'test/test_language.py')
-rwxr-xr-x | test/test_language.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_language.py b/test/test_language.py index 6fd0ee546..3f929bd05 100755 --- a/test/test_language.py +++ b/test/test_language.py @@ -76,10 +76,10 @@ class LanguageTestCase(DocutilsTestSupport.CustomTestCase): missing = [] # in ref but not in l. too_much = [] # in l but not in ref. for label in ref_dict.keys(): - if label not in l_dict: + if not l_dict.has_key(label): missing.append(label) for label in l_dict.keys(): - if label not in ref_dict: + if not ref_dict.has_key(label): too_much.append(label) return (missing, too_much) @@ -140,7 +140,7 @@ class LanguageTestCase(DocutilsTestSupport.CustomTestCase): canonical.sort() canonical.remove('restructuredtext-test-directive') for name in canonical: - if name not in inverted: + if not inverted.has_key(name): failures.append('"%s": translation missing' % name) if failures: text = ('Module docutils.parsers.rst.languages.%s:\n %s' @@ -175,7 +175,7 @@ class LanguageTestCase(DocutilsTestSupport.CustomTestCase): canonical.sort() canonical.remove('restructuredtext-unimplemented-role') for name in canonical: - if name not in inverted: + if not inverted.has_key(name): failures.append('"%s": translation missing' % name) if failures: text = ('Module docutils.parsers.rst.languages.%s:\n %s' |