From 177e913c869d7d6596084585fb1032347bf61f19 Mon Sep 17 00:00:00 2001 From: Jamie Hardt Date: Tue, 25 Jun 2019 13:17:18 -0700 Subject: [PATCH] Update test_wave_parsing.py --- tests/test_wave_parsing.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_wave_parsing.py b/tests/test_wave_parsing.py index 583a69a..b11cc91 100644 --- a/tests/test_wave_parsing.py +++ b/tests/test_wave_parsing.py @@ -40,7 +40,11 @@ class TestWaveInfo(TestCase): info = wavinfo.WavInfoReader(wav_file) ffprobe_info = ffprobe(wav_file) if info.bext: - self.assertEqual( info.bext.description, ffprobe_info['format']['tags']['comment'] ) + if 'comment' in ffprobe_info['format']['tags']: + self.assertEqual( info.bext.description, ffprobe_info['format']['tags']['comment'] ) + else: + self.assertEqual( info.bext.description , '') + self.assertEqual( info.bext.originator, ffprobe_info['format']['tags']['encoded_by'] ) if 'originator_reference' in ffprobe_info['format']['tags']: self.assertEqual( info.bext.originator_ref, ffprobe_info['format']['tags']['originator_reference'] )