Formats code to contain only one indentation and terminate with a \n
(text)
| 17 | CODE_BLOCK_WITH_DIRECTIVES_RST_CONTENT = load_fixture(CODE_BLOCK_WITH_DIRECTIVES_RST_PATH) |
| 18 | |
| 19 | def formatCase(text): |
| 20 | """Formats code to contain only one indentation and terminate with a \n""" |
| 21 | return indent(dedent(text.lstrip("\n")), " ") + "\n" |
| 22 | |
| 23 | class TestExtractDocsCases(unittest.TestCase): |
| 24 | def setUp(self): |
no test coverage detected