mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +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
|
|
@ -24,7 +24,7 @@ class DbmTestCase(unittest.TestCase):
|
|||
self.d[b'bytes'] = b'data'
|
||||
self.d['12345678910'] = '019237410982340912840198242'
|
||||
self.d.keys()
|
||||
self.assertTrue(b'a' in self.d)
|
||||
self.assertIn(b'a', self.d)
|
||||
self.assertEqual(self.d[b'bytes'], b'data')
|
||||
self.d.close()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue