def test_linkedstack_push_addsfront(self): stack = LinkedStack() for i in range(100): stack.push(i + 1) assert_equal(i + 1, stack.top()) assert_equal(i + 1, len(stack))
def test_linkedstack_top_emptyerror(self): stack = LinkedStack() stack.top()