use assert[Not]In where appropriate

This commit is contained in:
Ezio Melotti 2010-01-23 23:04:36 +00:00
parent 8cd0a66a0f
commit aa98058cc4
86 changed files with 622 additions and 599 deletions

View file

@ -87,7 +87,7 @@ class CompilerTest(unittest.TestCase):
def testDocstrings(self):
c = compiler.compile('"doc"', '<string>', 'exec')
self.assertTrue('__doc__' in c.co_names)
self.assertIn('__doc__', c.co_names)
c = compiler.compile('def f():\n "doc"', '<string>', 'exec')
g = {}
exec c in g