| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent fab3984 commit 343fddc
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -89,10 +89,16 @@ def foo(x, y, z=10): | |||
| 89 | 89 | screen = [(bold(cyan(u'foo'))+cyan(':')+cyan(' ')+cyan('(')+cyan('x') + | |
| 90 | 90 | yellow(',')+yellow(' ')+bold(cyan('y'))+yellow(',') + | |
| 91 | 91 | yellow(' ')+cyan('z')+yellow('=')+bold(cyan('10'))+yellow(')'))] | |
| 92 | - print screen | ||
| 93 | - print array | ||
| 94 | 92 | self.assertFSArraysEqual(fsarray(array), fsarray(screen)) | |
| 95 | 93 | ||
| 94 | + def test_formatted_docstring(self): | ||
| 95 | + actual = replpainter.formatted_docstring( | ||
| 96 | + 'Returns the results\n\n' 'Also has side effects', | ||
| 97 | + 40, config=setup_config()) | ||
| 98 | + expected = fsarray(['Returns the results', '', 'Also has side effects']) | ||
| 99 | + self.assertFSArraysEqualIgnoringFormatting(actual, expected) | ||
| 100 | + | ||
| 101 | + | ||
| 96 | 102 | ||
| 97 | 103 | @contextmanager | |
| 98 | 104 | def output_to_repl(repl): | |
| Back | FazBrowse Home | New Git URL |
0 commit comments