(self, input, output)
| 941 | |
| 942 | class ClinicBlockParserTest(TestCase): |
| 943 | def _test(self, input, output): |
| 944 | language = CLanguage(None) |
| 945 | |
| 946 | blocks = list(BlockParser(input, language)) |
| 947 | writer = BlockPrinter(language) |
| 948 | for block in blocks: |
| 949 | writer.print_block(block) |
| 950 | output = writer.f.getvalue() |
| 951 | assert output == input, "output != input!\n\noutput " + repr(output) + "\n\n input " + repr(input) |
| 952 | |
| 953 | def round_trip(self, input): |
| 954 | return self._test(input, input) |
no test coverage detected