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 setUp (self)
 
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 90 of file master.py.

Member Function Documentation

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

common test subroutine of both register and unregister tests.

registers the common test cases

Definition at line 292 of file master.py.

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

common test subroutine of both register and unregister tests.

registers the common test cases

Definition at line 124 of file master.py.

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 404 of file master.py.

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

validate master.getMasterUri(caller_id)

Definition at line 93 of file master.py.

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

validate master.getPid(caller_id)

Definition at line 108 of file master.py.

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

validate master.getUri(caller_id)

Definition at line 116 of file master.py.

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

Definition at line 229 of file master.py.

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

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

Definition at line 351 of file master.py.

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

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

Definition at line 325 of file master.py.

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

Definition at line 198 of file master.py.

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

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

Definition at line 153 of file master.py.

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

Definition at line 260 of file master.py.

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

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

Definition at line 433 of file master.py.

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

Definition at line 246 of file master.py.

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

Definition at line 368 of file master.py.

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

Definition at line 215 of file master.py.

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

Definition at line 156 of file master.py.

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

Definition at line 277 of file master.py.

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

Definition at line 436 of file master.py.


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


test_rosmaster
Author(s): Ken Conley, Dirk Thomas
autogenerated on Mon Nov 2 2020 03:52:54