Complete the code to define a test function using pytest.
def test_[1](): assert 2 + 2 == 4
The test function name should start with test_ followed by a descriptive name. Here, test_addition clearly describes the test.
Complete the code to group related tests inside a class using pytest.
class TestMathOperations: def [1](self): assert 3 * 3 == 9
In pytest, test methods inside classes must start with test_ to be recognized as tests.
Fix the error in the test class so pytest recognizes the test method.
class TestStrings: def [1](self): assert 'hello'.upper() == 'HELLO'
Pytest requires test methods to start with test_ to detect and run them.
Fill both blanks to create a test class with two test methods for addition and subtraction.
class TestArithmetic: def [1](self): assert 1 + 1 == 2 def [2](self): assert 5 - 3 == 2
Both test methods must start with test_ so pytest can find and run them.
Fill all three blanks to create a test class with grouped tests for multiplication, division, and modulus.
class TestOperations: def [1](self): assert 4 * 2 == 8 def [2](self): assert 10 / 2 == 5 def [3](self): assert 10 % 3 == 1
All test methods must start with test_ to be recognized by pytest. The names describe the operation tested.