def testLShiftWithExpectedType(self): '''Collector << ObjectType # libsample << operator''' collector = Collector() obj = ObjectType() collector << obj self.assertEqual(collector.items()[0], obj.identifier())
def testBasic(self): '''Collector << ObjectType # greedy collector''' collector = Collector() obj = ObjectType() collector << obj self.assertEqual(collector.items()[0], obj.identifier())