def test_keys(self): ta = (1, 2, 3) l = zip(ta, ta) dl = IntDisplayList(l) self.assertTrue(tuple(dl.keys()) == ta)