Ticket #3582: twisted3582_against_branch.patch

File twisted3582_against_branch.patch, 1010 bytes (added by Rami C, 9 years ago)

Patch against the branch correcting issues raised

  • twisted/protocols/test/test_sip.py

     
    33# See LICENSE for details.
    44
    55
    6 """Session Initialization Protocol tests."""
     6"""
     7Tests for Session Initialization Protocol.
     8"""
    79
    810from twisted.trial import unittest, util
    911from twisted.protocols import sip
     
    577579            ("sip:foo@example.com;tag=bar;foo=baz",
    578580             "", "sip:foo@example.com", {"tag": "bar", "foo": "baz"}),
    579581            # 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", {}),
    582584            ]:
    583585            gname, gurl, gparams = sip.parseAddress(address)
    584586            self.assertEqual(name, gname)