#NEWLINE# def test_valid_shipping_methods_1( self ) : #NEWLINE# #INDENT# 'Tests valid shipping methods.\n        ' #NEWLINE# sms = utils . get_valid_shipping_methods ( self . request ) #NEWLINE# self . assertEqual ( len ( sms ) , 2 ) #NEWLINE# sm_names = [ sm . name for sm in sms ] #NEWLINE# self . failUnless ( ( 'Standard' in sm_names ) ) #NEWLINE# self . failUnless ( ( 'Express' in sm_names ) ) #NEWLINE# self . request . user = None #NEWLINE# sms = utils . get_valid_shipping_methods ( self . request ) #NEWLINE# self . assertEqual ( len ( sms ) , 2 ) #NEWLINE# sm_names = [ sm . name for sm in sms ] #NEWLINE# self . failUnless ( ( 'Express' in sms ) )