Exemplo n.º 1
0
 def test_top(self):
     dl = DepList()
     dl.stack = [1, 2, 3]
     self.assertEqual(dl.top(), dl.stack[-1])