def test_push(self): cl = CardList() for i in range(1,10): cl.push(i, 1) self.assertEqual(4, len(cl.get()))