#NEWLINE# def test_fullParsingSuccess( self ) : #NEWLINE# #INDENT# '\n        Test that parsing is successful for a PROXY header.\n        ' #NEWLINE# info = _v1parser . V1Parser . parse ( b'PROXY TCP4 127.0.0.1 127.0.0.1 8080 8888' ) #NEWLINE# self . assertTrue ( isinstance ( info . source , address . IPv4Address ) ) #NEWLINE# self . assertEqual ( info . source . host , b'127.0.0.1' ) #NEWLINE# self . assertEqual ( info . source . port , 8080 ) #NEWLINE# self . assertEqual ( self . destination . host , b'127.0.0.1' ) #NEWLINE# self . assertEqual ( info . destination . port , 8888 )