Modify use of assertTrue(A in B)

Developers should use assertIn(A, B) instead of assertTrue(A in B ).
Developers should use assertNotIn(A, B) instead of assertFalse(A in B ).

TrivialFix

Change-Id: Icecdace82ea6229af2bddfb65b33ecb9d8c05a3c
This commit is contained in:
melissaml 2016-10-08 11:46:52 +08:00
parent 9fd9b8fe87
commit f3acbf3485

View File

@ -1211,8 +1211,8 @@ class TestRecordProcessor(testtools.TestCase):
self.assertEqual(0, bp2['mention_date'])
email = runtime_storage_inst.get_by_primary_key('<another-message-id>')
self.assertTrue('mod:blueprint' in email['blueprint_id'])
self.assertFalse('mod:invalid' in email['blueprint_id'])
self.assertIn('mod:blueprint', email['blueprint_id'])
self.assertNotIn('mod:invalid', email['blueprint_id'])
def test_mark_disagreement(self):
record_processor_inst = self.make_record_processor(