menu_book Course Curriculum (Software Testing) expand_more
Testing Fundamentals
Assertions & Fixtures
Test Doubles & Dependencies
Coverage & Quality
API & Web Testing
parameterized tests
Learn parameterized tests in Software Testing with a dedicated explanation, a concept-specific example, practical cautions, and a mastery check.
12 min read
•
Beginner
software-testing-012.py
python
import pytest
@pytest.mark.parametrize('raw,expected',[(' A ','A'),('B ','B'),(' c','c')])
def test_strip(raw,expected): assert raw.strip()==expected
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content