#NEWLINE# @ pytest . mark . integration #NEWLINE# @ vcr . use_cassette #NEWLINE# def test_list_subtitles( episodes ) : #NEWLINE# #INDENT# video = episodes [ 'bbt_s07e05' ] #NEWLINE# languages = { Language ( 'eng' ) , Language ( 'fra' ) } #NEWLINE# with TheSubDBProvider ( ) as provider : #NEWLINE# #INDENT# subtitles = provider . list_subtitles ( video , languages ) #NEWLINE# #UNINDENT# assert ( len ( subtitles ) == 2 ) #NEWLINE# assert ( { languages . language for subtitle in subtitles } == languages )