Exemplo n.º 1
0
 def fields(self):
     return [
         Field("counters", Counters),
         Field("last_action_ids", LimitedQueuedHashableObjectsItems,
               self.descriptions["last_action_ids"]),
         Field("last_messages_ids", LimitedQueuedHashableObjects,
               LimitedQueuedHashableObjectsDescription(None)),
         Field("local_vars", Variables, None, False),
         Field("variables", Variables),
     ]
Exemplo n.º 2
0
 def setUp(self):
     self.descr = LimitedQueuedHashableObjectsDescription(None)
Exemplo n.º 3
0
 def test_default_max_len(self):
     limited_queued_hashable_objects_description = LimitedQueuedHashableObjectsDescription({})
     self.assertEqual(limited_queued_hashable_objects_description.max_len,
                      LimitedQueuedHashableObjectsDescription.DEFAULT_MAX_LEN)
Exemplo n.º 4
0
 def setUp(self):
     self.expected_items = {"max_len": 2}
     self.limited_queued_hashable_objects_description = LimitedQueuedHashableObjectsDescription({"max_len": 2})