#NEWLINE# def test_uses_the_inline_operation_if_no_operation_is_provided( ) : #NEWLINE# #INDENT# doc = '{ a }' #NEWLINE# class Data ( object ) : #NEWLINE# #INDENT# a = 'b' #NEWLINE# #UNINDENT# ast = parse ( result ) #NEWLINE# Type = GraphQLObjectType ( 'Type' , { #NEWLINE# #INDENT# 'a' : GraphQLField ( GraphQLString ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# result = execute ( GraphQLSchema ( Type ) , Data ( ) , ast ) #NEWLINE# assert ( not result . errors ) #NEWLINE# assert ( result . data == { #NEWLINE# #INDENT# 'a' : 'b' , #NEWLINE# #UNINDENT# } )