#NEWLINE# def test_episode( self ) : #NEWLINE# #INDENT# result = Episode ( 'serie/Homeland/2/2/Beirut_Is_Back' ) #NEWLINE# result . fetch_versions ( ) #NEWLINE# self . assertEqual ( result . title , 'Homeland - 02x02 - Beirut Is Back' ) #NEWLINE# versions = result . filter_versions ( [ 'english' , 'french' ] , s ( 'evolve' ) ) #NEWLINE# self . assertEqual ( 'English' , versions [ 1 ] . language ) #NEWLINE# self . assertEqual ( '/original/67365/2' , versions [ 1 ] . url ) #NEWLINE# self . assertFalse ( versions [ 0 ] . hearing_impaired ) #NEWLINE# self . assertTrue ( versions [ 1 ] . hearing_impaired )