#NEWLINE# def test_row_and_no_schema( self ) : #NEWLINE# #INDENT# coder = TableRowJsonCoder ( ) #NEWLINE# test_row = bigquery . TableRow ( f = [ bigquery . TableCell ( v = to_json_value ( e ) ) for e in [ 'abc' , 123 , 123.456 , True ] ] ) #NEWLINE# with self . assertRaises ( AttributeError ) as ctx : #NEWLINE# #INDENT# coder . encode ( test_row ) #NEWLINE# #UNINDENT# self . assertTrue ( ctx . exception . message . startswith ( 'The TableRowJsonCoder requires' ) )