def test_legacy_convert(self): caption_set = DFXPReader(read_invalid_positioning=True).read( SAMPLE_DFXP_FOR_LEGACY_WRITER_INPUT) result = LegacyDFXPWriter().write(caption_set) self.assertEqual(result, SAMPLE_DFXP_FOR_LEGACY_WRITER_OUTPUT)
def test_legacy_convert(self, sample_dfxp_for_legacy_writer_output, sample_dfxp_for_legacy_writer_input): caption_set = DFXPReader(read_invalid_positioning=True).read( sample_dfxp_for_legacy_writer_input ) result = LegacyDFXPWriter().write(caption_set) assert result == sample_dfxp_for_legacy_writer_output