#NEWLINE# def test_parses_scalar( ) : #NEWLINE# #INDENT# body = 'scalar Hello' #NEWLINE# loc = create_loc_fn ( body ) #NEWLINE# doc = parse ( body ) #NEWLINE# expected = ast . Document ( definitions = [ ast . ScalarTypeDefinition ( name = ast . Name ( value = 'Hello' , loc = loc ( 7 , 12 ) ) , loc = loc ( 0 , 12 ) ) ] , loc = loc ( 0 , 12 ) ) #NEWLINE# assert ( doc == expected )