From 577473fe687b38c8f01b0c372d6d2563680045b3 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Tue, 19 Jan 2010 00:09:57 +0000 Subject: use assert[Not]In where appropriate A patch from Dave Malcolm. --- Lib/test/test_structseq.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/test/test_structseq.py') diff --git a/Lib/test/test_structseq.py b/Lib/test/test_structseq.py index 7adca53400..6e57e22f77 100644 --- a/Lib/test/test_structseq.py +++ b/Lib/test/test_structseq.py @@ -50,8 +50,8 @@ class StructSeqTest(unittest.TestCase): def test_contains(self): t1 = time.gmtime() for item in t1: - self.assertTrue(item in t1) - self.assertTrue(-42 not in t1) + self.assertIn(item, t1) + self.assertNotIn(-42, t1) def test_hash(self): t1 = time.gmtime() -- cgit v1.2.1