#NEWLINE# def test_complex( self ) : #NEWLINE# #INDENT# '\n        Test parsing a Via header with one of everything.\n        ' #NEWLINE# s = 'SIP/2.0/UDP first.example.com:4000;ttl=16;maddr=224.2.0.1 ;branch=a7c6a8dlze (Example)' #NEWLINE# v = sip . parseViaHeader ( s ) #NEWLINE# self . assertEquals ( self . transport , 'UDP' ) #NEWLINE# self . assertEquals ( v . host , 'first.example.com' ) #NEWLINE# self . assertEquals ( v . port , 4000 ) #NEWLINE# self . assertEquals ( v . rport , None ) #NEWLINE# self . assertEquals ( v . rportValue , None ) #NEWLINE# self . assertEquals ( v . rportRequested , False ) #NEWLINE# self . assertEquals ( v . ttl , 16 ) #NEWLINE# self . assertEquals ( v . maddr , '224.2.0.1' ) #NEWLINE# self . assertEquals ( v . branch , 'a7c6a8dlze' ) #NEWLINE# self . assertEquals ( v . hidden , 0 ) #NEWLINE# self . assertEquals ( v . toString ( ) , 'SIP/2.0/UDP first.example.com:4000;ttl=16;branch=a7c6a8dlze;maddr=224.2.0.1' ) #NEWLINE# self . checkRoundtrip ( v )