Пример #1
0
 def testLShiftWithExpectedType(self):
     '''Collector << ObjectType # libsample << operator'''
     collector = Collector()
     obj = ObjectType()
     collector << obj
     self.assertEqual(collector.items()[0], obj.identifier())
Пример #2
0
 def testBasic(self):
     '''Collector << ObjectType # greedy collector'''
     collector = Collector()
     obj = ObjectType()
     collector << obj
     self.assertEqual(collector.items()[0], obj.identifier())
 def testLShiftWithExpectedType(self):
     '''Collector << ObjectType # libsample << operator'''
     collector = Collector()
     obj = ObjectType()
     collector << obj
     self.assertEqual(collector.items()[0], obj.identifier())
Пример #4
0
 def testBasic(self):
     '''Collector << ObjectType # greedy collector'''
     collector = Collector()
     obj = ObjectType()
     collector << obj
     self.assertEqual(collector.items()[0], obj.identifier())