Question: I want to write a test case where x is 4 and y is 1 0 and the expected result should be x + y
I want to write a test case where x is and y is and the expected result should be xy Suppose I already have the import statement. What would the assert statement look like using pytest to do this assuming we compare the actual and expected in just one linedef testcalculateYGreaterThanXNumbersself:Check to see if output is correct where y is greater than x "type your answer...
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
