def testPrepend(self): c1 = Context() c1.add(ItemId()) c1.prepend(self.id1) self.assertEqual(c1.indexOf(self.id1), 0)
def testIndexOf(self): c1 = Context(self.id1) self.assertEqual(c1.indexOf(self.id1), 0)