def test_000_newqueue_length(self): c1 = commandlist.CommandList() self.assertEqual(c1.length(),0)
def test_001_newqueue_cantpop(self): c1 = commandlist.CommandList() self.assertRaises(IndexError,c1.next)
def test_002_push_then_pop(self): c1 = commandlist.CommandList() c1.append("Test") c = c1.next() self.assertEqual(c,"Test")