summaryrefslogtreecommitdiff
path: root/test/test_settings.py
diff options
context:
space:
mode:
authorgoodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2003-09-11 22:40:49 +0000
committergoodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2003-09-11 22:40:49 +0000
commit64cf0bbb5ad743577df071d712ab81befa16b821 (patch)
tree309640838e695a11d32cb010c6964ac16f615395 /test/test_settings.py
parent5261c45badb074fa23f7cad47808d96b572b717e (diff)
downloaddocutils-64cf0bbb5ad743577df071d712ab81befa16b821.tar.gz
Added docstring. Reverted order of diff header to be consistent with the rest of the Docutils tests and with the output order of difflib.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@1676 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'test/test_settings.py')
-rwxr-xr-xtest/test_settings.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/test_settings.py b/test/test_settings.py
index e948e64fa..d22d10fbc 100755
--- a/test/test_settings.py
+++ b/test/test_settings.py
@@ -88,7 +88,7 @@ class ConfigFileTests(unittest.TestCase):
self.assertEquals(result, expected)
except AssertionError:
print >>sys.stderr, '\n%s\n' % (self,)
- print >>sys.stderr, '+: result\n-: expected'
+ print >>sys.stderr, '-: expected\n+: result'
print >>sys.stderr, ''.join(self.compare(expected.splitlines(1),
result.splitlines(1)))
raise
@@ -124,6 +124,11 @@ class ConfigFileTests(unittest.TestCase):
class ConfigEnvVarFileTests(ConfigFileTests):
+ """
+ Repeats the tests of `ConfigFileTests` using the ``DOCUTILSCONFIG``
+ environment variable and the standard Docutils config file mechanism.
+ """
+
def setUp(self):
ConfigFileTests.setUp(self)
self.orig_environ = os.environ
@@ -136,7 +141,7 @@ class ConfigEnvVarFileTests(ConfigFileTests):
def tearDown(self):
os.environ = self.orig_environ
-
+
if __name__ == '__main__':
unittest.main()