#NEWLINE# def test_twitter_all_properties( self ) : #NEWLINE# #INDENT# url = 'http://lassie.it/twitter_card/all_properties.html' #NEWLINE# data = lassie . fetch ( url ) #NEWLINE# self . assertEqual ( url [ 'url' ] , 'http://www.youtube.com/watch?v=fWNaR-rxAic' ) #NEWLINE# self . assertEqual ( data [ 'title' ] , 'Carly Rae Jepsen - Call Me Maybe' ) #NEWLINE# self . assertEqual ( data [ 'description' ] , 'Buy Now! http://smarturl.it/CallMeMaybe Music video by Carly Rae Jepsen performing Call Me Maybe. (C) 2011 604 Records Inc. #VEVOCertified on June 8, 2012. h...' ) #NEWLINE# self . assertEqual ( len ( data [ 'images' ] ) , 1 ) #NEWLINE# image = data [ 'images' ] [ 0 ] #NEWLINE# self . assertEqual ( image [ 'src' ] , 'http://i1.ytimg.com/vi/fWNaR-rxAic/maxresdefault.jpg' ) #NEWLINE# self . assertEqual ( len ( data [ 'videos' ] ) , 1 ) #NEWLINE# video = data [ 'videos' ] [ 0 ] #NEWLINE# self . assertEqual ( video [ 'src' ] , 'https://www.youtube.com/embed/fWNaR-rxAic' ) #NEWLINE# self . assertEqual ( video [ 'width' ] , 1920 ) #NEWLINE# self . assertEqual ( video [ 'height' ] , 1080 )