Skip to content

Commit

Permalink
Work around psf/black#1629
Browse files Browse the repository at this point in the history
  • Loading branch information
twm committed Sep 13, 2020
1 parent 8e6e62d commit 1d0734b
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions src/twisted/words/test/test_irc.py
Expand Up @@ -1750,16 +1750,17 @@ def testWhois(self):
timestamp,
["#fakeusers", "#fakemisc"],
)
expected = "\r\n".join(
[
":%(hostname)s 311 %(req)s %(targ)s target host.com * :Target User",
":%(hostname)s 312 %(req)s %(targ)s irc.host.com :A fake server",
":%(hostname)s 317 %(req)s %(targ)s 12 %(timestamp)s :seconds idle, signon time",
":%(hostname)s 319 %(req)s %(targ)s :#fakeusers #fakemisc",
":%(hostname)s 318 %(req)s %(targ)s :End of WHOIS list.",
"",
]
) % dict(hostname=hostname, timestamp=timestamp, req=req, targ=targ)
lines = [
":%(hostname)s 311 %(req)s %(targ)s target host.com * :Target User",
":%(hostname)s 312 %(req)s %(targ)s irc.host.com :A fake server",
":%(hostname)s 317 %(req)s %(targ)s 12 %(timestamp)s :seconds idle, signon time",
":%(hostname)s 319 %(req)s %(targ)s :#fakeusers #fakemisc",
":%(hostname)s 318 %(req)s %(targ)s :End of WHOIS list.",
"",
]
expected = "\r\n".join(lines) % dict(
hostname=hostname, timestamp=timestamp, req=req, targ=targ
)
self.check(expected)


Expand Down

0 comments on commit 1d0734b

Please sign in to comment.