def test_stackUnderflow(self): myStack = Stack() self.assertEqual(myStack.pop(), "Stack empty")
def test_pop(self): myStack = Stack() myStack.push(10) self.assertEqual(myStack.pop().data, 10)