Unit Testing: Sample Pattern

class TestSample(unittest.TestCase):
    def setUp(self):
        #Mock prepare
        pass

    #patch /decorator
    def test_sample(self):
        # Mock Prepare
        # return value
        # expected call
        # function call
        # assertion
        # self.assertEqual(function_response, self.response)
        pass

    def tearDown(self):
        pass

No comments:

Post a Comment