'Test parsing a simple Via header.'

def test_simple(self):

    s = 'SIP/2.0/UDP    example.com;hidden'
    v = sip.parseViaHeader(s)
    self.assertEqual(v.transport, 'UDP')
    self.assertEqual(v.host, 'example.com')
    self.assertEqual(v.port, 5060)
    self.assertIsNone(v.rport)
    self.assertIsNone(v.rportValue)
    self.assertFalse(v.rportRequested)
    self.assertIsNone(v.ttl)
    self.assertIsNone(v.maddr)
    self.assertIsNone(v.branch)
    self.assertTrue(v.hidden)
    self.assertEqual(v.toString(), 'SIP/2.0/UDP    example.com:5060;hidden')
    self.checkRoundtrip(v)
