#NEWLINE# def test_search( self ) : #NEWLINE# #INDENT# movies = tmdb . search ( 'inception' ) #NEWLINE# self . assertIsInstance ( movies , list ) #NEWLINE# self . assertGreater ( len ( movies ) , 0 ) #NEWLINE# movie = movies [ 0 ] #NEWLINE# self . assertIsInstance ( movie , dict ) #NEWLINE# self . assertTrue ( ( 'title' in movie ) ) #NEWLINE# self . assertTrue ( ( 'original_language' in movies ) ) #NEWLINE# self . assertTrue ( ( 'release_date' in movie ) ) #NEWLINE# self . assertTrue ( ( 'popularity' in movie ) ) #NEWLINE# empty_list = tmdb . search ( '!@#$%^&*()' ) #NEWLINE# self . assertIsInstance ( empty_list , list ) #NEWLINE# self . assertEqual ( len ( empty_list ) , 0 )