Example #1
0
 def test_max(self):
   cl = CardList()
   cl.push(1, 0)
   cl.push(13, 1)
   cl.push(19, 2)
   cl.push(41, 3)
   expected = 0
   self.assertEqual(expected, cl.max())
Example #2
0
 def test_push(self):
   cl = CardList()
   for i in range(1,10):
     cl.push(i, 1)
   self.assertEqual(4, len(cl.get()))