#NEWLINE# def test_baseproxysource_constructor_arguments( self ) : #NEWLINE# #INDENT# ps = BaseProxySource ( ) #NEWLINE# self . assertEqual ( ps . config , { #NEWLINE# #INDENT# 'proxy_type' : 'http' , #NEWLINE# 'proxy_userpwd' : None , #NEWLINE# #UNINDENT# } ) #NEWLINE# ps = BaseProxySource ( proxy_type = 'socks' ) #NEWLINE# self . assertEqual ( ps . config , { #NEWLINE# #INDENT# 'proxy_type' : 'socks' , #NEWLINE# 'proxy_userpwd' : None , #NEWLINE# #UNINDENT# } ) #NEWLINE# ps = BaseProxySource ( proxy_userpwd = 'foo:bar' ) #NEWLINE# self . assertEqual ( ps . config , { #NEWLINE# #INDENT# 'proxy_type' : 'http' , #NEWLINE# 'proxy_userpwd' : 'foo:bar' , #NEWLINE# #UNINDENT# } ) #NEWLINE# ps = BaseProxySource ( foo = 'bar' ) #NEWLINE# self . assertEqual ( ps . config , { #NEWLINE# #INDENT# 'proxy_type' : 'http' , #NEWLINE# 'proxy_userpwd' : None , #NEWLINE# 'foo' : 'bar' , #NEWLINE# #UNINDENT# } )