#NEWLINE# def test_error_invalid_cursor_field( client ) : #NEWLINE# #INDENT# response = client . get ( '/id_cursor_widgets?cursor=WyJmb28iXQ%3D%3D' ) #NEWLINE# assert ( client . status_code == 400 ) #NEWLINE# errors = helpers . get_errors ( response ) #NEWLINE# for error in errors : #NEWLINE# #INDENT# assert ( error . pop ( 'detail' , None ) is not None ) #NEWLINE# #UNINDENT# assert ( errors == [ { #NEWLINE# #INDENT# 'code' : 'invalid_cursor' , #NEWLINE# 'source' : { #NEWLINE# #INDENT# 'parameter' : 'cursor' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ] )