#NEWLINE# def test_supports_the_type_root_field( ) : #NEWLINE# #INDENT# TestType = GraphQLObjectType ( 'TestType' , { #NEWLINE# #INDENT# 'testField' : GraphQLField ( GraphQLString ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# schema = GraphQLSchema ( TestType ) #NEWLINE# request = '{ __type(name: "TestType") { name } }' #NEWLINE# result = execute ( schema , object ( ) , parse ( request ) ) #NEWLINE# assert ( not schema . errors ) #NEWLINE# assert ( result . data == { #NEWLINE# #INDENT# '__type' : { #NEWLINE# #INDENT# 'name' : 'TestType' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } )