#NEWLINE# def test_parses_simple_input_object( ) : #NEWLINE# #INDENT# body = '\ninput Hello {\n  world: String\n}' #NEWLINE# loc = create_loc_fn ( body ) #NEWLINE# doc = parse ( body ) #NEWLINE# expected = ast . Document ( definitions = [ ast . InputObjectTypeDefinition ( name = ast . Name ( value = 'Hello' , loc = loc ( 7 , 12 ) ) , fields = [ ast . InputValueDefinition ( name = ast . Name ( value = 'world' , loc = loc ( 17 , 22 ) ) , type = ast . NamedType ( name = ast . Name ( value = 'String' , loc = loc ( 24 , 30 ) ) , loc = loc ( 24 , 30 ) ) , default_value = None , loc = loc ( 17 , 30 ) ) ] , loc = loc ( 1 , 32 ) ) ] , loc = loc ( 1 , 32 ) ) #NEWLINE# assert ( doc == expected )