diff options
| author | Konrad Delong <konryd@gmail.com> | 2010-07-27 14:39:17 +0200 |
|---|---|---|
| committer | Konrad Delong <konryd@gmail.com> | 2010-07-27 14:39:17 +0200 |
| commit | c13c358e8ef39a4dfb30ae9f5744a760e6be6b29 (patch) | |
| tree | dadd46690326afb1a71b6ff39fa8b61f41b16a87 /src/distutils2/tests/test_test.py | |
| parent | c9ade502b46aae261ee25c078d2e8ce73fc1c062 (diff) | |
| download | disutils2-c13c358e8ef39a4dfb30ae9f5744a760e6be6b29.tar.gz | |
added an alias to dist.py
Diffstat (limited to 'src/distutils2/tests/test_test.py')
| -rw-r--r-- | src/distutils2/tests/test_test.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/distutils2/tests/test_test.py b/src/distutils2/tests/test_test.py index 4328d8b..772af45 100644 --- a/src/distutils2/tests/test_test.py +++ b/src/distutils2/tests/test_test.py @@ -64,7 +64,17 @@ class TestTest(TempdirManager, unittest.TestCase): _, errors = test_proc.communicate() # ensure right output - self.assertIn(EXPECTED_OUTPUT, errors) + self.assert_multiline_substring(EXPECTED_OUTPUT, errors) + + def assert_multiline_substring(self, a, b): + def quote(s): + lines = ['## ' + line for line in s.split('\n')] + sep = ["#" * 60] + return [''] + sep + lines + sep + msg = quote(a) + ['not found in:'] + quote(b) + msg = "\n".join(msg) + if a not in b: + self.fail(msg) def _test_setup_py_accepts_options(self): pass |
