def test_invalid_end_to_end_format(line: Text): reader = MarkdownStoryReader() with pytest.raises(ValueError): # noinspection PyProtectedMember _ = reader.parse_e2e_message(line)
def test_e2e_parsing(line: Text, expected: Dict): actual = MarkdownStoryReader.parse_e2e_message(line) assert actual.as_dict() == expected