Skip to content

Commit

Permalink
Improve some test docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
cjwatson committed Oct 16, 2021
1 parent c03bd25 commit 4e0eb3e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/twisted/conch/test/test_transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -827,17 +827,17 @@ def test_sendExtInfo(self):

def test_sendExtInfoUnsupported(self):
"""
If the other end has not advertised support for extension
negotiation, no EXT_INFO message is sent. See RFC 8308, section
2.2.
If the peer has not advertised support for extension negotiation, no
EXT_INFO message is sent, since RFC 8308 only guarantees that the
peer will be prepared to accept it if it has advertised support.
"""
self.proto.sendExtInfo([(b"server-sig-algs", b"ssh-rsa,rsa-sha2-256")])
self.assertEqual(self.packets, [])

def test_EXT_INFO(self):
"""
Test that EXT_INFO messages are received correctly. See RFC 8308,
section 2.3.
When an EXT_INFO message is received, the transport stores a mapping
of the peer's advertised extensions. See RFC 8308, section 2.3.
"""
self.proto.dispatchMessage(
transport.MSG_EXT_INFO,
Expand Down

0 comments on commit 4e0eb3e

Please sign in to comment.