def test_stack_push_pop_pop(): s = Stack() s.push(1) s.pop() assert s.pop() == None # is this really the right thing to do?
def test_stack_push_pop(): s = Stack() s.push(1) assert s.pop() == 1 assert len(s) == 0