Python · Debugging & Testing
Instead of self.assertTrue(x in items) or self.assertTrue(y is None), unittest offers assertIn, assertIsNone, assertIsInstance, assertGreater, and so on. Why bother picking the specialized one?
Answer locked. Get the free KnowCard app to reveal it — plus spaced-repetition review so it actually sticks.
