#NEWLINE# def test_console( self ) : #NEWLINE# #INDENT# c = ctype . Console ( host = '127.0.0.1' , port = 8945 ) #NEWLINE# self . assertTrue ( hasattr ( c , 'host' ) ) #NEWLINE# self . assertTrue ( hasattr ( c , 'port' ) ) #NEWLINE# self . assertTrue ( hasattr ( c , 'internal_access_path' ) ) #NEWLINE# self . assertEqual ( '127.0.0.1' , c . host ) #NEWLINE# self . assertEqual ( 8945 , c . port ) #NEWLINE# self . assertIsNone ( c . internal_access_path ) #NEWLINE# self . assertEqual ( { #NEWLINE# #INDENT# 'host' : '127.0.0.1' , #NEWLINE# 'port' : 8945 , #NEWLINE# 'internal_access_path' : None , #NEWLINE# 'token' : 'a-token' , #NEWLINE# 'access_url' : 'an-url' , #NEWLINE# #UNINDENT# } , c . get_connection_info ( 'a-token' , 'an-url' ) )