#NEWLINE# def test_ipv6_host( self ) : #NEWLINE# #INDENT# url = 'rsync://[2001:db8:0:1]:873' #NEWLINE# parsed = misc . parse_uri ( url ) #NEWLINE# self . assertEqual ( 'rsync' , parsed . scheme ) #NEWLINE# self . assertEqual ( '2001:db8:0:1' , parsed . hostname ) #NEWLINE# self . assertEqual ( 873 , parsed . port )