Update test to call audioStreams() and videoStreams() as functions (not properties)

This commit is contained in:
Michael Shepanski 2017-05-13 16:17:06 -04:00
parent 1a175a74a0
commit 1315f4f3c3

View file

@ -107,7 +107,7 @@ def test_video_Movie_attrs(movies):
assert sorted([i.tag for i in movie.writers][:4]) == ['Nina Paley'] # noqa assert sorted([i.tag for i in movie.writers][:4]) == ['Nina Paley'] # noqa
assert movie.year == 2008 assert movie.year == 2008
# Audio # Audio
audio = movie.media[0].parts[0].audioStreams[0] audio = movie.media[0].parts[0].audioStreams()[0]
if audio.audioChannelLayout: if audio.audioChannelLayout:
assert audio.audioChannelLayout in utils.AUDIOLAYOUTS assert audio.audioChannelLayout in utils.AUDIOLAYOUTS
assert audio.bitDepth is None assert audio.bitDepth is None
@ -147,7 +147,7 @@ def test_video_Movie_attrs(movies):
assert media.videoResolution in utils.RESOLUTIONS assert media.videoResolution in utils.RESOLUTIONS
assert utils.is_int(media.width, gte=200) assert utils.is_int(media.width, gte=200)
# Video # Video
video = movie.media[0].parts[0].videoStreams[0] video = movie.media[0].parts[0].videoStreams()[0]
assert video.bitDepth == 8 assert video.bitDepth == 8
assert utils.is_int(video.bitrate) assert utils.is_int(video.bitrate)
assert video.cabac is None assert video.cabac is None