A Discrete-Event Network Simulator
API
python-unit-tests.TestSimulator Class Reference

TestSimulator class. More...

+ Inheritance diagram for python-unit-tests.TestSimulator:
+ Collaboration diagram for python-unit-tests.TestSimulator:

Public Member Functions

def testAttributes (self)
 Test attributes function. More...
 
def testCommandLine (self)
 Test command line. More...
 
def testConfig (self)
 Test configuration. More...
 
def testIdentity (self)
 Test identify. More...
 
def testSchedule (self)
 Test schedule. More...
 
def testScheduleDestroy (self)
 Test schedule destroy. More...
 
def testScheduleNow (self)
 Test schedule now. More...
 
def testScheduleWithContext (self)
 Test schedule with context. More...
 
def testSocket (self)
 Test socket. More...
 
def testSubclass (self)
 Test subclass. More...
 
def testTimeComparison (self)
 Test time comparison. More...
 
def testTimeNumericOperations (self)
 Test numeric operations. More...
 
def testTypeId (self)
 Test type ID. More...
 

Private Attributes

 _args_received
 args More...
 
 _cb_time
 current time More...
 
 _context_received
 context More...
 
 _received_packet
 received packet More...
 

Detailed Description

TestSimulator class.

Definition at line 30 of file python-unit-tests.py.

Member Function Documentation

◆ testAttributes()

def python-unit-tests.TestSimulator.testAttributes (   self)

Test attributes function.

Parameters
selfthis object
Returns
none

Definition at line 187 of file python-unit-tests.py.

◆ testCommandLine()

def python-unit-tests.TestSimulator.testCommandLine (   self)

Test command line.

Parameters
selfthis object
Returns
none

Definition at line 238 of file python-unit-tests.py.

◆ testConfig()

def python-unit-tests.TestSimulator.testConfig (   self)

Test configuration.

Parameters
selfthis object
Returns
none

Definition at line 149 of file python-unit-tests.py.

◆ testIdentity()

def python-unit-tests.TestSimulator.testIdentity (   self)

Test identify.

Parameters
selfthis object
Returns
none

Definition at line 214 of file python-unit-tests.py.

◆ testSchedule()

def python-unit-tests.TestSimulator.testSchedule (   self)

Test schedule.

Parameters
selfthis object
Returns
none

Definition at line 60 of file python-unit-tests.py.

References python-unit-tests.TestSimulator._args_received, python-unit-tests.TestSimulator._cb_time, and ns3.Seconds().

+ Here is the call graph for this function:

◆ testScheduleDestroy()

def python-unit-tests.TestSimulator.testScheduleDestroy (   self)

Test schedule destroy.

Parameters
selfthis object
Returns
none

Definition at line 80 of file python-unit-tests.py.

References python-unit-tests.TestSimulator._args_received, python-unit-tests.TestSimulator._cb_time, and ns3.Seconds().

+ Here is the call graph for this function:

◆ testScheduleNow()

def python-unit-tests.TestSimulator.testScheduleNow (   self)

Test schedule now.

Parameters
selfthis object
Returns
none

Definition at line 40 of file python-unit-tests.py.

◆ testScheduleWithContext()

def python-unit-tests.TestSimulator.testScheduleWithContext (   self)

Test schedule with context.

Parameters
selfthis object
Returns
none

Definition at line 103 of file python-unit-tests.py.

◆ testSocket()

def python-unit-tests.TestSimulator.testSocket (   self)

Test socket.

Parameters
self
Returns
none

Definition at line 157 of file python-unit-tests.py.

◆ testSubclass()

def python-unit-tests.TestSimulator.testSubclass (   self)

Test subclass.

Parameters
selfthis object
Returns
none

Definition at line 263 of file python-unit-tests.py.

◆ testTimeComparison()

def python-unit-tests.TestSimulator.testTimeComparison (   self)

Test time comparison.

Parameters
selfthis object
Returns
none

Definition at line 127 of file python-unit-tests.py.

References ns3.Seconds().

+ Here is the call graph for this function:

◆ testTimeNumericOperations()

def python-unit-tests.TestSimulator.testTimeNumericOperations (   self)

Test numeric operations.

Parameters
selfthis object
Returns
none

Definition at line 138 of file python-unit-tests.py.

References ns3.Seconds().

+ Here is the call graph for this function:

◆ testTypeId()

def python-unit-tests.TestSimulator.testTypeId (   self)

Test type ID.

Parameters
selfthis object
Returns
none

Definition at line 228 of file python-unit-tests.py.

Member Data Documentation

◆ _args_received

python-unit-tests.TestSimulator._args_received
private

◆ _cb_time

python-unit-tests.TestSimulator._cb_time
private

◆ _context_received

python-unit-tests.TestSimulator._context_received
private

context

Definition at line 114 of file python-unit-tests.py.

◆ _received_packet

python-unit-tests.TestSimulator._received_packet
private

received packet

Definition at line 165 of file python-unit-tests.py.


The documentation for this class was generated from the following file: