diff options
| author | strank <strank@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2008-07-23 19:18:19 +0000 |
|---|---|---|
| committer | strank <strank@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2008-07-23 19:18:19 +0000 |
| commit | 83816c45579ffbfab7206e21818ecdd12ddcd8f6 (patch) | |
| tree | 6d90955100c70e412ec4e2618f87afcf76284677 /test/test_functional.py | |
| parent | 466ad4a1c03f23b3a72ca50f614ec552ec8b02ba (diff) | |
| download | docutils-83816c45579ffbfab7206e21818ecdd12ddcd8f6.tar.gz | |
Replace all has_key with the in operator.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@5607 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'test/test_functional.py')
| -rwxr-xr-x | test/test_functional.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_functional.py b/test/test_functional.py index 26f4533c6..9d129f412 100755 --- a/test/test_functional.py +++ b/test/test_functional.py @@ -95,9 +95,9 @@ class FunctionalTestCase(DocutilsTestSupport.CustomTestCase): execfile(join_path(datadir, 'tests', '_default.py'), namespace) execfile(self.configfile, namespace) # Check for required settings: - assert namespace.has_key('test_source'),\ + assert 'test_source' in namespace,\ "No 'test_source' supplied in " + self.configfile - assert namespace.has_key('test_destination'),\ + assert 'test_destination' in namespace,\ "No 'test_destination' supplied in " + self.configfile # Set source_path and destination_path if not given: namespace.setdefault('source_path', @@ -151,7 +151,7 @@ class FunctionalTestCase(DocutilsTestSupport.CustomTestCase): print >>sys.stderr, diff raise # Execute optional function containing extra tests: - if namespace.has_key('_test_more'): + if '_test_more' in namespace: namespace['_test_more'](join_path(datadir, 'expected'), join_path(datadir, 'output'), self, namespace) |
