#NEWLINE# def test_parses_double_value_enum( ) : #NEWLINE# #INDENT# body = 'enum Hello { WO, RLD }' #NEWLINE# loc = create_loc_fn ( body ) #NEWLINE# doc = parse ( body ) #NEWLINE# expected = ast . Document ( definitions = [ ast . EnumTypeDefinition ( name = ast . Name ( value = 'Hello' , loc = loc ( 5 , 10 ) ) , values = [ ast . EnumValueDefinition ( name = ast . Name ( value = 'WO' , loc = loc ( 13 , 15 ) ) , loc = loc ( 13 , 15 ) ) , ast . EnumValueDefinition ( name = ast . Name ( value = 'RLD' , loc = loc ( 17 , 20 ) ) , loc = loc ( 17 , 20 ) ) ] , loc = loc ( 0 , 22 ) ) ] , loc = loc ( 0 , 22 ) ) #NEWLINE# assert ( doc == expected )