#NEWLINE# def test_simple_non_null_type( ) : #NEWLINE# #INDENT# body = '\ntype Hello {\n  world: String!\n}' #NEWLINE# doc = parse ( body ) #NEWLINE# loc = create_loc_fn ( body ) #NEWLINE# expected = ast . Document ( definitions = [ ast . ObjectTypeDefinition ( name = ast . Name ( value = 'Hello' , loc = loc ( 6 , 11 ) ) , interfaces = [ ] , fields = [ ast . FieldDefinition ( name = ast . Name ( value = 'world' , loc = loc ( 16 , 21 ) ) , arguments = [ ] , type = ast . NonNullType ( type = ast . NamedType ( name = ast . Name ( value = 'String' , loc = loc ( 23 , 29 ) ) , loc = loc ( 23 , 29 ) ) , loc = loc ( 23 , 30 ) ) , loc = loc ( 16 , 30 ) ) ] , loc = loc ( 1 , 32 ) ) ] , loc = loc ( 1 , 32 ) ) #NEWLINE# assert ( doc == expected )