Public Member Functions | Private Member Functions | List of all members
test.node.NodeApiTestCase Class Reference

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

Inheritance diagram for test.node.NodeApiTestCase:
Inheritance graph
[legend]

Public Member Functions

def testGetBusInfo (self)
 
def testGetBusStats (self)
 
def testGetMasterUri (self)
 validate node.getMasterUri(caller_id) More...
 
def testGetName (self)
 validate node.getName(caller_id) More...
 
def testGetPid (self)
 validate node.getPid(caller_id) More...
 
def testGetPublications (self)
 validate node.getPublications(caller_id) More...
 
def testGetSubscriptions (self)
 validate node.getSubscriptions(caller_id) More...
 
def testGetUri (self)
 validate node.getUri(caller_id) More...
 
def testParamUpdate (self)
 validate node.paramUpdate(caller_id, key, value) More...
 
def testPublisherUpdate (self)
 validate node.publisherUpdate(caller_id, topic, uris) More...
 
def testRegistrations (self)
 test the state of the master based on expected node registration More...
 
def testRequestTopic (self)
 
- Public Member Functions inherited from test.node._NodeTestCase
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)
 

Private Member Functions

def _checkTCPROS (self, protocol_params)
 
def _checkTopics (self, required, actual)
 subroutine for testGetSubscriptions/testGetPublications More...
 

Additional Inherited Members

- Public Attributes inherited from test.node._NodeTestCase
 caller_id
 
 node
 
 node_api
 
 ns
 
 test_node
 
- 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 139 of file node.py.

Member Function Documentation

def test.node.NodeApiTestCase._checkTCPROS (   self,
  protocol_params 
)
private

Definition at line 251 of file node.py.

def test.node.NodeApiTestCase._checkTopics (   self,
  required,
  actual 
)
private

subroutine for testGetSubscriptions/testGetPublications

Definition at line 150 of file node.py.

def test.node.NodeApiTestCase.testGetBusInfo (   self)

Definition at line 286 of file node.py.

def test.node.NodeApiTestCase.testGetBusStats (   self)

Definition at line 292 of file node.py.

def test.node.NodeApiTestCase.testGetMasterUri (   self)

validate node.getMasterUri(caller_id)

Definition at line 212 of file node.py.

def test.node.NodeApiTestCase.testGetName (   self)

validate node.getName(caller_id)

Definition at line 203 of file node.py.

def test.node.NodeApiTestCase.testGetPid (   self)

validate node.getPid(caller_id)

Definition at line 142 of file node.py.

def test.node.NodeApiTestCase.testGetPublications (   self)

validate node.getPublications(caller_id)

Definition at line 156 of file node.py.

def test.node.NodeApiTestCase.testGetSubscriptions (   self)

validate node.getSubscriptions(caller_id)

Definition at line 165 of file node.py.

def test.node.NodeApiTestCase.testGetUri (   self)

validate node.getUri(caller_id)

Definition at line 195 of file node.py.

def test.node.NodeApiTestCase.testParamUpdate (   self)

validate node.paramUpdate(caller_id, key, value)

Definition at line 174 of file node.py.

def test.node.NodeApiTestCase.testPublisherUpdate (   self)

validate node.publisherUpdate(caller_id, topic, uris)

Definition at line 222 of file node.py.

def test.node.NodeApiTestCase.testRegistrations (   self)

test the state of the master based on expected node registration

Definition at line 299 of file node.py.

def test.node.NodeApiTestCase.testRequestTopic (   self)

Definition at line 259 of file node.py.


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


test_rosmaster
Author(s): Ken Conley
autogenerated on Sun Feb 3 2019 03:30:20