Changes between Initial Version and Version 4 of Ticket #24714
- Timestamp:
- Apr 27, 2015, 10:14:16 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #24714
- Property Owner changed from to
- Property Status new → assigned
- Property Has patch set
- Property Component Uncategorized → Core (Other)
- Property Patch needs improvement set
- Property Triage Stage Unreviewed → Accepted
- Property Type Uncategorized → Cleanup/optimization
-
Ticket #24714 – Description
initial v4 2 2 3 3 {{{ 4 self.assertEqual(True, x) # prefer self.assertTrue(x)5 self.assertEqual(False, x) # prefer self.assertFalse(x)6 4 self.assertEqual(None, x) # prefer self.assertIsNone(x) 7 5 self.assertEqual(True, x in y) # prefer self.assertIn(x, y) 6 7 8 self.assertEqual(True, x) # self.assertTrue(x) may be appropriate, but care is needed because it will pass for truthy values 9 self.assertEqual(False, x) # prefer self.assertFalse(x) may be appropriate, but care is needed because it will pass for falsey values 8 10 self.assertEqual(True, x == y) # prefer self.assertEqual(x, y) 9 self.assertEqual(False, x == y) # prefer self.assertNotEqual(x, y)10 11 }}} 11 12