mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
use assert[Not]In where appropriate
A patch from Dave Malcolm.
This commit is contained in:
parent
a69ba65fdc
commit
577473fe68
75 changed files with 471 additions and 454 deletions
|
@ -143,7 +143,7 @@ class CgiTests(unittest.TestCase):
|
|||
# test individual fields
|
||||
for key in expect.keys():
|
||||
expect_val = expect[key]
|
||||
self.assertTrue(key in fs)
|
||||
self.assertIn(key, fs)
|
||||
if len(expect_val) > 1:
|
||||
self.assertEqual(fs.getvalue(key), expect_val)
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue