TestSimulator class. More...
Inheritance diagram for python-unit-tests.TestSimulator:
Collaboration diagram for python-unit-tests.TestSimulator:Public Member Functions | |
| testAttributes (self) | |
| Test attributes function. | |
| testCommandLine (self) | |
| Test command line. | |
| testConfig (self) | |
| Test configuration. | |
| testEchoServerApplication (self) | |
| Test python-based application. | |
| testIdentity (self) | |
| Test identify. | |
| testSchedule (self) | |
| Test schedule. | |
| testScheduleDestroy (self) | |
| Test schedule destroy. | |
| testScheduleNow (self) | |
| Test schedule now. | |
| testScheduleWithContext (self) | |
| Test schedule with context. | |
| testSocket (self) | |
| Test socket. | |
| testSubclass (self) | |
| Test subclass. | |
| testTimeComparison (self) | |
| Test time comparison. | |
| testTimeNumericOperations (self) | |
| Test numeric operations. | |
| testTypeId (self) | |
| Test type ID. | |
Public Attributes | |
| m_socket | |
| Socket used by the server to listen to port. | |
| port = port | |
| Listen port for the server. | |
Protected Attributes | |
| _args_received = list(map(lambda x: x.decode("utf-8"), args)) | |
| args | |
| _cb_time = ns.Simulator.Now() | |
| current time | |
| _context_received = context | |
| context | |
| _received_packet = None | |
| received packet | |
Private Attributes | |
| bool | __python_owns__ = False |
| python_owns flag indicates that Cppyy should not manage the lifetime of this variable | |
TestSimulator class.
Definition at line 25 of file python-unit-tests.py.
| python-unit-tests.TestSimulator.testAttributes | ( | self | ) |
Test attributes function.
| self | this object |
Definition at line 237 of file python-unit-tests.py.
| python-unit-tests.TestSimulator.testCommandLine | ( | self | ) |
Test command line.
| self | this object |
Definition at line 297 of file python-unit-tests.py.
| python-unit-tests.TestSimulator.testConfig | ( | self | ) |
Test configuration.
| self | this object |
Definition at line 188 of file python-unit-tests.py.
| python-unit-tests.TestSimulator.testEchoServerApplication | ( | self | ) |
Test python-based application.
| self | this object |
Definition at line 347 of file python-unit-tests.py.
| python-unit-tests.TestSimulator.testIdentity | ( | self | ) |
Test identify.
| self | this object |
Definition at line 268 of file python-unit-tests.py.
| python-unit-tests.TestSimulator.testSchedule | ( | self | ) |
Test schedule.
| self | this object |
Definition at line 66 of file python-unit-tests.py.
References _args_received, and _cb_time.
| python-unit-tests.TestSimulator.testScheduleDestroy | ( | self | ) |
Test schedule destroy.
| self | this object |
Definition at line 97 of file python-unit-tests.py.
References _args_received, and _cb_time.
| python-unit-tests.TestSimulator.testScheduleNow | ( | self | ) |
Test schedule now.
| self | this object |
Definition at line 35 of file python-unit-tests.py.
| python-unit-tests.TestSimulator.testScheduleWithContext | ( | self | ) |
Test schedule with context.
| self | this object |
Definition at line 131 of file python-unit-tests.py.
| python-unit-tests.TestSimulator.testSocket | ( | self | ) |
| python-unit-tests.TestSimulator.testSubclass | ( | self | ) |
Test subclass.
| self | this object |
Definition at line 331 of file python-unit-tests.py.
| python-unit-tests.TestSimulator.testTimeComparison | ( | self | ) |
Test time comparison.
| self | this object |
Definition at line 166 of file python-unit-tests.py.
| python-unit-tests.TestSimulator.testTimeNumericOperations | ( | self | ) |
Test numeric operations.
| self | this object |
Definition at line 177 of file python-unit-tests.py.
| python-unit-tests.TestSimulator.testTypeId | ( | self | ) |
Test type ID.
| self | this object |
Definition at line 285 of file python-unit-tests.py.
|
private |
python_owns flag indicates that Cppyy should not manage the lifetime of this variable
Definition at line 402 of file python-unit-tests.py.
|
protected |
args
Definition at line 46 of file python-unit-tests.py.
Referenced by testSchedule(), and testScheduleDestroy().
|
protected |
current time
Definition at line 47 of file python-unit-tests.py.
Referenced by testSchedule(), and testScheduleDestroy().
|
protected |
context
Definition at line 143 of file python-unit-tests.py.
|
protected |
received packet
Definition at line 205 of file python-unit-tests.py.
| python-unit-tests.TestSimulator.m_socket |
Socket used by the server to listen to port.
Definition at line 406 of file python-unit-tests.py.
| python-unit-tests.TestSimulator.port = port |
Listen port for the server.
Definition at line 404 of file python-unit-tests.py.