#NEWLINE# def test_parse_unix_schemes( self ) : #NEWLINE# #INDENT# c = WebSocketBaseClient ( url = 'ws+unix:///my.socket' ) #NEWLINE# self . assertEqual ( c . scheme , 'ws+unix' ) #NEWLINE# self . assertEqual ( c . host , 'localhost' ) #NEWLINE# self . assertIsNone ( c . port ) #NEWLINE# self . assertEqual ( c . unix_socket_path , '/my.socket' ) #NEWLINE# self . assertEqual ( self . resource , '/' ) #NEWLINE# self . assertEqual ( c . bind_addr , '/my.socket' ) #NEWLINE# c = WebSocketBaseClient ( url = 'wss+unix:///my.socket' ) #NEWLINE# self . assertEqual ( c . scheme , 'wss+unix' ) #NEWLINE# self . assertEqual ( c . host , 'localhost' ) #NEWLINE# self . assertIsNone ( c . port ) #NEWLINE# self . assertEqual ( c . unix_socket_path , '/my.socket' ) #NEWLINE# self . assertEqual ( c . resource , '/' ) #NEWLINE# self . assertEqual ( c . bind_addr , '/my.socket' )