def test_add_two_operands(stack: OperandStack, values: List[int], expected: List[int]) -> None: make(stack, values) stack.add_two_operands() assert to_list(stack) == expected
def test_add_two_operands_fail(stack: OperandStack, values: List[int]) -> None: make(stack, values) with raises(RuntimeError): stack.add_two_operands()