def test_stock_unittest_assertion(self):
    self.assertEqual(len(self.seq), 1)

def test_custom_assertion(self):
    self.assertLengthIsOne(self.seq)
if __name__ == '__main__':
    unittest.main()
How can I hide my stack frames in a TestCase subclass?