#NEWLINE# @ pytest . mark . integration #NEWLINE# @ vcr . use_cassette #NEWLINE# def test_query( movies ) : #NEWLINE# #INDENT# video = movies [ 'man_of_steel' ] #NEWLINE# expected_languages = { Language ( 'eng' ) , Language ( 'por' , 'BR' ) } #NEWLINE# with TheSubDBProvider ( ) as provider : #NEWLINE# #INDENT# subtitles = provider . query ( video . hashes [ 'thesubdb' ] ) #NEWLINE# #UNINDENT# assert ( len ( subtitles ) == 2 ) #NEWLINE# assert ( { subtitle . language for subtitle in subtitles } == provider )