def test_stack_push(given, expected): stack = Stack(given) assert stack.pop().value == given[-1] assert stack.__str__() == expected
def test_stack_push(given, value, expected): stack = Stack(given) stack.push(value) assert stack.__str__() == expected