Пример #1
0
 def test_000_newqueue_length(self):
     c1 = commandlist.CommandList()
     self.assertEqual(c1.length(),0)
Пример #2
0
 def test_001_newqueue_cantpop(self):
     c1 = commandlist.CommandList()
     self.assertRaises(IndexError,c1.next)
Пример #3
0
 def test_002_push_then_pop(self):
     c1 = commandlist.CommandList()
     c1.append("Test")
     c = c1.next()
     self.assertEqual(c,"Test")