def test_failure(self):
    dummy = self.DummyStack()
    self.assertEqual('Hello world', dummy.fail())
    self.assertFalse(dummy.mark_failed.called)
def test_failure(self):
    dummy = self.DummyStack()
    self.assertEqual('Hello world', dummy.fail())
    self.assertFalse(dummy.mark_failed.called)