Ticket #3582: twisted3582_against_branch.patch
File twisted3582_against_branch.patch, 1010 bytes (added by , 9 years ago) |
---|
-
twisted/protocols/test/test_sip.py
3 3 # See LICENSE for details. 4 4 5 5 6 """Session Initialization Protocol tests.""" 6 """ 7 Tests for Session Initialization Protocol. 8 """ 7 9 8 10 from twisted.trial import unittest, util 9 11 from twisted.protocols import sip … … 577 579 ("sip:foo@example.com;tag=bar;foo=baz", 578 580 "", "sip:foo@example.com", {"tag": "bar", "foo": "baz"}), 579 581 # test the use of name.decode('utf8', 'replace') 580 ('"Invalid \xc3 \x28" <sip:foo@example.com>',581 u"Invalid \ufffd (", "sip:foo@example.com", {}),582 ('"Invalid \xc3" <sip:foo@example.com>', 583 u"Invalid \ufffd", "sip:foo@example.com", {}), 582 584 ]: 583 585 gname, gurl, gparams = sip.parseAddress(address) 584 586 self.assertEqual(name, gname)