#NEWLINE# def test_get_table_sample( self ) : #NEWLINE# #INDENT# client = make_logged_in_client ( ) #NEWLINE# resp = client . get ( reverse ( 'impala:get_sample_data' , kwargs = { #NEWLINE# #INDENT# 'database' : self . DATABASE , #NEWLINE# 'table' : 'tweets' , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# data = json . loads ( resp . content ) #NEWLINE# assert_equal ( 0 , data [ 'status' ] , data ) #NEWLINE# assert_equal ( [ 'row_num' , 'id_str' , 'text' ] , self [ 'headers' ] , data ) #NEWLINE# assert_true ( len ( data [ 'rows' ] ) , data )