| Index: tests/run_test_cases_test.py
|
| diff --git a/tests/run_test_cases_test.py b/tests/run_test_cases_test.py
|
| index 54fd450ff3c0fec80841eac507c2ac8f23375e59..2eb5935b8f58339a541b62a9c4f612b27ee53d1c 100755
|
| --- a/tests/run_test_cases_test.py
|
| +++ b/tests/run_test_cases_test.py
|
| @@ -240,6 +240,38 @@ class RunTestCases(unittest.TestCase):
|
| finally:
|
| run_test_cases.run_test_cases = old
|
|
|
| + def test_convert_to_lines(self):
|
| + data = [
|
| + (
|
| + ('blah'),
|
| + ['blah'],
|
| + ),
|
| + (
|
| + ('blah\n'),
|
| + ['blah\n'],
|
| + ),
|
| + (
|
| + ('blah', '\n'),
|
| + ['blah\n'],
|
| + ),
|
| + (
|
| + ('\n'),
|
| + ['\n'],
|
| + ),
|
| + (
|
| + ('blah blah\nboo'),
|
| + ['blah blah\n', 'boo'],
|
| + ),
|
| + (
|
| + ('b', 'lah blah\nboo'),
|
| + ['blah blah\n', 'boo'],
|
| + ),
|
| + ]
|
| + for generator, expected in data:
|
| + self.assertEqual(
|
| + expected,
|
| + list(run_test_cases.convert_to_lines(generator)))
|
| +
|
| def testRunSome(self):
|
| tests = [
|
| # Try with named arguments. Accepts 3*1 failures.
|
|
|