menu_book Course Curriculum (Software Testing) expand_more
Testing Fundamentals
Assertions & Fixtures
Test Doubles & Dependencies
Coverage & Quality
API & Web Testing
idempotency test
Learn idempotency test in Software Testing with a dedicated explanation, a concept-specific example, practical cautions, and a mastery check.
12 min read
•
Advanced
software-testing-037.py
python
processed={}
def create(key):
if key not in processed: processed[key]={'id':len(processed)+1}
return processed[key]
assert create('abc') == create('abc')
assert len(processed)==1
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content