Private Member Functions | List of all members
test.master.MasterApiTestCase Class Reference

Expects a single test node to be running with name 'test_node' and subscribed to 'test_string'. More...

Inheritance diagram for test.master.MasterApiTestCase:
Inheritance graph
[legend]

Private Member Functions

def _subTestRegisterPublisherSuccess (self)
 common test subroutine of both register and unregister tests. More...
 
def _subTestRegisterServiceSuccess (self)
 common test subroutine of both register and unregister tests. More...
 
def _subTestRegisterSubscriberSimpleSuccess (self)
 common test subroutine of both register and unregister tests. More...
 
def _testGetMasterUri (self)
 validate master.getMasterUri(caller_id) More...
 
def _testGetPid (self)
 validate master.getPid(caller_id)
More...
 
def _testGetUri (self)
 validate master.getUri(caller_id)
More...
 
def _testRegisterPublisherInvalid (self)
 
def _testRegisterPublisherSuccess (self)
 validate master.registerPublisher(caller_id, topic, topic_api, caller_api) More...
 
def _testRegisterPublisherTypes (self)
 #591: this test may change if we make registering '*' unsupported More...
 
def _testRegisterServiceInvalid (self)
 
def _testRegisterServiceSuccess (self)
 validate master.registerService(caller_id, service, service_api, caller_api) More...
 
def _testRegisterSubscriberInvalid (self)
 
def _testRegisterSubscriberSimpleSuccess (self)
 validate master.registerSubscriber(caller_id, topic, topic_api, caller_api) More...
 
def _testUnregisterPublisherInvalid (self)
 
def _testUnregisterPublisherSuccess (self)
 
def _testUnregisterServiceInvalid (self)
 
def _testUnregisterServiceSuccess (self)
 
def _testUnregisterSubscriberInvalid (self)
 
def _testUnregisterSubscriberSuccess (self)
 

Additional Inherited Members

- Public Member Functions inherited from test.master._MasterTestCase
def __init__ (self, *args)
 
def setUp (self)
 
- Public Member Functions inherited from test.rosclient.TestRosClient
def apiError (self, args, msg=None)
 unit test assertion that fails if status code is not -1 and otherwise returns true More...
 
def apiFail (self, args)
 unit test assertions that fails if status code is not 0 and otherwise returns true More...
 
def apiSuccess (self, args)
 unit test assertion that fails if status code is not 1 and otherwise returns the value parameter More...
 
def tearDown (self)
 
- Public Attributes inherited from test.master._MasterTestCase
 caller_id
 
 master
 
 master_uri
 
 ns
 
- Public Attributes inherited from test.rosclient.TestRosClient
 last_code
 
 last_msg
 
 last_val
 
 master
 

Detailed Description

Expects a single test node to be running with name 'test_node' and subscribed to 'test_string'.

Definition at line 93 of file master.py.

Member Function Documentation

◆ _subTestRegisterPublisherSuccess()

def test.master.MasterApiTestCase._subTestRegisterPublisherSuccess (   self)
private

common test subroutine of both register and unregister tests.

registers the common test cases

Definition at line 298 of file master.py.

◆ _subTestRegisterServiceSuccess()

def test.master.MasterApiTestCase._subTestRegisterServiceSuccess (   self)
private

common test subroutine of both register and unregister tests.

registers the common test cases

Definition at line 130 of file master.py.

◆ _subTestRegisterSubscriberSimpleSuccess()

def test.master.MasterApiTestCase._subTestRegisterSubscriberSimpleSuccess (   self)
private

common test subroutine of both register and unregister tests.

registers the common test cases 'simple' test cases do not setup any publisher state to validate against

Definition at line 410 of file master.py.

◆ _testGetMasterUri()

def test.master.MasterApiTestCase._testGetMasterUri (   self)
private

validate master.getMasterUri(caller_id)

Definition at line 96 of file master.py.

◆ _testGetPid()

def test.master.MasterApiTestCase._testGetPid (   self)
private

validate master.getPid(caller_id)

Definition at line 114 of file master.py.

◆ _testGetUri()

def test.master.MasterApiTestCase._testGetUri (   self)
private

validate master.getUri(caller_id)

Definition at line 122 of file master.py.

◆ _testRegisterPublisherInvalid()

def test.master.MasterApiTestCase._testRegisterPublisherInvalid (   self)
private

Definition at line 235 of file master.py.

◆ _testRegisterPublisherSuccess()

def test.master.MasterApiTestCase._testRegisterPublisherSuccess (   self)
private

validate master.registerPublisher(caller_id, topic, topic_api, caller_api)

Definition at line 357 of file master.py.

◆ _testRegisterPublisherTypes()

def test.master.MasterApiTestCase._testRegisterPublisherTypes (   self)
private

#591: this test may change if we make registering '*' unsupported

Definition at line 331 of file master.py.

◆ _testRegisterServiceInvalid()

def test.master.MasterApiTestCase._testRegisterServiceInvalid (   self)
private

Definition at line 204 of file master.py.

◆ _testRegisterServiceSuccess()

def test.master.MasterApiTestCase._testRegisterServiceSuccess (   self)
private

validate master.registerService(caller_id, service, service_api, caller_api)

Definition at line 159 of file master.py.

◆ _testRegisterSubscriberInvalid()

def test.master.MasterApiTestCase._testRegisterSubscriberInvalid (   self)
private

Definition at line 266 of file master.py.

◆ _testRegisterSubscriberSimpleSuccess()

def test.master.MasterApiTestCase._testRegisterSubscriberSimpleSuccess (   self)
private

validate master.registerSubscriber(caller_id, topic, topic_api, caller_api)

Definition at line 439 of file master.py.

◆ _testUnregisterPublisherInvalid()

def test.master.MasterApiTestCase._testUnregisterPublisherInvalid (   self)
private

Definition at line 252 of file master.py.

◆ _testUnregisterPublisherSuccess()

def test.master.MasterApiTestCase._testUnregisterPublisherSuccess (   self)
private

Definition at line 374 of file master.py.

◆ _testUnregisterServiceInvalid()

def test.master.MasterApiTestCase._testUnregisterServiceInvalid (   self)
private

Definition at line 221 of file master.py.

◆ _testUnregisterServiceSuccess()

def test.master.MasterApiTestCase._testUnregisterServiceSuccess (   self)
private

Definition at line 162 of file master.py.

◆ _testUnregisterSubscriberInvalid()

def test.master.MasterApiTestCase._testUnregisterSubscriberInvalid (   self)
private

Definition at line 283 of file master.py.

◆ _testUnregisterSubscriberSuccess()

def test.master.MasterApiTestCase._testUnregisterSubscriberSuccess (   self)
private

Definition at line 442 of file master.py.


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


test_rosmaster
Author(s): Ken Conley, Dirk Thomas , Jacob Perron
autogenerated on Tue May 20 2025 03:00:35