4 class TestExampleFunction_TestCase(unittest.TestCase):
5 def test_times_two(self):
6 self.assertEqual(example.times_two(2), 4)
9 class TestExampleFunction:
10 def test_times_two(self):
11 assert example.times_two(2) == 4
15 assert example.times_two(2) == 4