mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00
use assert[Not]In where appropriate
This commit is contained in:
parent
8cd0a66a0f
commit
aa98058cc4
86 changed files with 622 additions and 599 deletions
|
@ -321,7 +321,7 @@ class OptionTests(TestCase):
|
|||
txt = telnet.read_all()
|
||||
cmd = nego.seen
|
||||
self.assertTrue(len(cmd) > 0) # we expect at least one command
|
||||
self.assertTrue(cmd[0] in self.cmds)
|
||||
self.assertIn(cmd[0], self.cmds)
|
||||
self.assertEqual(cmd[1], tl.NOOPT)
|
||||
self.assertEqual(len(''.join(data[:-1])), len(txt + cmd))
|
||||
nego.sb_getter = None # break the nego => telnet cycle
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue