class Test(unittest.TestCase): def test_if_other_test_passes(self): # Add first test here self.assertTrue(foo()) # This test will only run if the first test passes self.assertEqual(bar(), 2)