#NEWLINE# def test_sample_movies( ) : #NEWLINE# #INDENT# movies = load_sample_movies ( ) #NEWLINE# assert_in ( movies , in_ = [ 'data' , 'item_ids' , 'user_ids' , 'DESCR' ] ) #NEWLINE# assert_equal ( len ( movies . data ) , 7 ) #NEWLINE# assert_equal ( len ( movies . item_ids ) , 6 ) #NEWLINE# assert_equal ( sum ( [ len ( items ) for ( key , items ) in movies . data . iteritems ( ) ] ) , 35 )