# test.generic.test_collectors module — Python(P)DEVS-BBL documentation

# test.generic.test_collectors module

Tests the Collector building blocks to prove validity w.r.t. these tests.

Every test will run a PythonPDEVS simulation on a model. This model will afterwards be analyzed against the expected measures. The model has a general shape of

`Generator -> Collector`

Note

The `pypdevsbbl.generic.collectors.TableCollector` will not be tested in a standalone-way. Its correctness will be evaluated w.r.t. all other tests that are executed.

See also

`pypdevsbbl.generic.collectors`

class `test.generic.test_collectors.``TestCollectors`(methodName='runTest')

  Bases: `unittest.case.TestCase`

  `setUp`()
  `test_collector`()

    Tests the `pypdevsbbl.generic.collectors.Collector`.

  `test_collector_clear`()

    Tests the clearing of the `pypdevsbbl.generic.collectors.Collector`.

  `test_estimate`()

    Tests the `pypdevsbbl.generic.collectors.EstimateCollector`.

  `test_estimate_clear`()

    Tests the clearing of the `pypdevsbbl.generic.collectors.EstimateCollector`.

  `test_counter`()

    Tests the `pypdevsbbl.generic.collectors.EstimateCollector`.

  `test_counter_clear`()

    Tests the clearing of the `pypdevsbbl.generic.collectors.EstimateCollector`.