Master programming syntax, solve interactive challenges & run live code in Syntaxis Explore Arena →
menu_book Course Curriculum (Software Testing) expand_more
Software Testing / Test Doubles & Dependencies

stub return value

Learn stub return value in Software Testing with a dedicated explanation, a concept-specific example, practical cautions, and a mastery check.

12 min read • Intermediate
software-testing-017.py
python
class StubExchange:
    def rate(self, pair): return 1.25
assert 80*StubExchange().rate('USD/EUR') == 100
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content