(result, expected_file, regen=REGEN_TEST_FIXTURES)
| 23 | |
| 24 | |
| 25 | def check_text_lines(result, expected_file, regen=REGEN_TEST_FIXTURES): |
| 26 | if regen: |
| 27 | with open(expected_file, 'w') as tf: |
| 28 | json.dump(result, tf, indent=2) |
| 29 | with open(expected_file, 'rb') as tf: |
| 30 | expected = json.load(tf) |
| 31 | assert result == expected |
| 32 | |
| 33 | |
| 34 | class TestAnalysis(FileBasedTesting): |
no test coverage detected