2.1.1.2. de_sim.testing package

2.1.1.2.1. Submodules

2.1.1.2.2. de_sim.testing.example_simulation_objects module

Author

Arthur Goldberg <Arthur.Goldberg@mssm.edu>

Date

2018-02-15

Copyright

2018, Karr Lab

License

MIT

class de_sim.testing.example_simulation_objects.ExampleSimulationObject(name, **kwargs)[source]

Bases: de_sim.simulation_object.ApplicationSimulationObject

class_priority = 1[source]
event_handlers = [(<class 'de_sim.simulation_message.InitMsg'>, 'handler'), (<class 'de_sim.simulation_message.Eg1'>, 'handler')][source]
get_state()[source]
handler(event)[source]
messages_sent = [<class 'de_sim.simulation_message.InitMsg'>, <class 'de_sim.simulation_message.Eg1'>][source]
metadata = <de_sim.simulation_object.ApplicationSimulationObjectMetadata object>[source]
send_initial_events(*args)[source]
class de_sim.testing.example_simulation_objects.ImproperlyRegisteredSimulationObject(name, start_time=0, **kwargs)[source]

Bases: de_sim.simulation_object.ApplicationSimulationObject

event_handlers = [(<class 'de_sim.simulation_message.Eg1'>, 'handler')][source]
get_state()[source]
handler(event)[source]
messages_sent = [<class 'de_sim.simulation_message.InitMsg'>][source]
metadata = <de_sim.simulation_object.ApplicationSimulationObjectMetadata object>[source]
send_initial_events(*args)[source]

2.1.1.2.3. de_sim.testing.mock_simulation_object module

An interface for a mock simulation object that can evaluate unit test assertions

Author

Arthur Goldberg <Arthur.Goldberg@mssm.edu>

Date

2018-02-06

Copyright

2018, Karr Lab

License

MIT

class de_sim.testing.mock_simulation_object.MockSimulationObject(name, test_case, **kwargs)[source]

Bases: de_sim.simulation_object.ApplicationSimulationObject

An object that helps test simulation objects

abstract = True[source]
messages_sent = [][source]
metadata = <de_sim.simulation_object.ApplicationSimulationObjectMetadata object>[source]

2.1.1.2.4. de_sim.testing.some_message_types module

2.1.1.2.5. Module contents