Beispiel #1
0
 def testCreateEmptyArgs(self):
     ma_pile = stack.Fifo("name")
     self.assertEqual(0, len(ma_pile))
Beispiel #2
0
 def setUp(self):
     self.ma_pile = stack.Fifo("name", "one", "two")
Beispiel #3
0
 def testMoreArgs(self):
     ma_pile = stack.Fifo("name", "toto", "tata", 2)
     self.assertEqual(3, len(ma_pile))
Beispiel #4
0
 def testListArg(self):
     ma_pile = stack.Fifo("name", ["toto", "tata"])
     self.assertEqual(1, len(ma_pile),
                      "Les collectoins ne doivent pas etre eclatees")
Beispiel #5
0
 def testCreateOneArg(self):
     ma_pile = stack.Fifo("name", "toto")
     self.assertEqual(1, len(ma_pile))