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 4 and y is 10 and the expected result should be x+y. 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 line)?def test_calculateYGreaterThanXNumbers(self):"'"Check to see if output is correct where y is greater than x "" "type your answer...
I want to write a test case where x is 4 and y is

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!