#NEWLINE# def get_shipping_costs( request , shipping_method ) : #NEWLINE# #INDENT# 'Returns a dictionary with the shipping price and tax for the passed\n    request and shipping method.\n\n    The format of the dictionary is: {"price" : 0.0, "tax" : 0.0}\n    ' #NEWLINE# if ( shipping_method is None ) : #NEWLINE# #INDENT# return { #NEWLINE# #INDENT# 'price_net' : 0.0 , #NEWLINE# 'price_gross' : 0.0 , #NEWLINE# 'tax' : 0.0 , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# price_gross = shipping_method . get_price_gross ( request ) #NEWLINE# price_net = shipping_method . get_price_net ( request ) #NEWLINE# tax = shipping_method . get_tax ( request ) #NEWLINE# return { #NEWLINE# #INDENT# 'price_net' : price_net , #NEWLINE# 'price_gross' : price_gross , #NEWLINE# 'tax' : tax , #NEWLINE# #UNINDENT# }