Automate statement coverage test for a simple function
Preconditions (2)
Step 1: Create a Python function named calculate_discount that takes a price and a boolean is_member
Step 2: If is_member is True, apply 10% discount to price, else no discount
Step 3: Write test cases to call calculate_discount with both True and False for is_member
Step 4: Run tests and verify all statements in calculate_discount are executed
✅ Expected Result: All statements in calculate_discount function are executed and tests pass