Example #1
0
def test_modulus(operator, operands, value):
    """It should be able to mod."""
    assert handler.execute(operator, operands) == value
Example #2
0
def test_divide(operator, operands, value):
    """It should be able to divide."""
    assert handler.execute(operator, operands) == value
Example #3
0
def test_subtract(operator, operands, value):
    """It should be able to subtract."""
    assert handler.execute(operator, operands) == value
Example #4
0
def test_multiply(operator, operands, value):
    """It should be able to multiply."""
    assert handler.execute(operator, operands) == value
Example #5
0
def test_add(operator, operands, value):
    """It should be able to add."""
    assert handler.execute(operator, operands) == value