I am learning algorithms in leetcodes and usually have multiple testing in one TestCase
class TestCase(unittest.TestCase):
"""
Tesing threeSum.py Solution class.
"""
def setUp(self):
self.solution = Solution()
def test_1(self):
def test_2(self):
...
def test_3(self):
When I want to test one particular function, then have to comment others out.
Is there a solution to test a specified function in one TestCase?