#NEWLINE# def test_parse_ws_scheme( self ) : #NEWLINE# #INDENT# c = WebSocketBaseClient ( url = 'ws://127.0.0.1/' ) #NEWLINE# self . assertEqual ( c . scheme , 'ws' ) #NEWLINE# self . assertEqual ( c . host , '127.0.0.1' ) #NEWLINE# self . assertEqual ( c . port , 80 ) #NEWLINE# self . assertEqual ( c . resource , '/' ) #NEWLINE# self . assertEqual ( c . bind_addr , ( '127.0.0.1' , 80 ) )