How to unit test a method that has 2 other methods inside?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



How to unit test a method that has 2 other methods inside?



How would I create a unit test for a method that has other methods inside? I do not want to test inside methods - I know I can't. How would I do that?


class Example:

def something(self):
"""Search Records"""
self.clear_screen()
self.rockets_main_menu()



What is the best approach to create a unit test for "something" method?









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

Creating a leaderboard in HTML/JS