Public Member Functions | Public Attributes
test_slave_api.TestSlaveApi Class Reference

List of all members.

Public Member Functions

def __init__
def apiError
def apiFail
def apiSuccess
def check_TCPROS
def check_uri
def load_profile
def setUp
def test_getBusInfo
def test_getMasterUri
def test_getPid
def test_getPublications
def test_getSubscriptions
def test_paramUpdate
 validate node.paramUpdate(caller_id, key, value)
def test_publisherUpdate
def test_registrations
 test the state of the master based on expected node registration
def test_rosout
def test_simtime
def testRequestTopic
def xtest_getUri

Public Attributes

 caller_id
 last_code
 last_val
 master
 node
 node_api
 ns
 required_pubs
 required_subs
 test_node
 test_node_profile

Detailed Description

Definition at line 81 of file test_slave_api.py.


Constructor & Destructor Documentation

def test_slave_api.TestSlaveApi.__init__ (   self,
  args,
  kwds 
)

Definition at line 83 of file test_slave_api.py.


Member Function Documentation

def test_slave_api.TestSlaveApi.apiError (   self,
  args,
  msg = None 
)
unit test assertion that fails if status code is not -1 and otherwise returns true.
@param args: returnv value from ROS API call
@type  args: [int, str, val]
@return: True if status code is -1

Definition at line 155 of file test_slave_api.py.

def test_slave_api.TestSlaveApi.apiFail (   self,
  args 
)
unit test assertions that fails if status code is not 0 and otherwise returns true.
@param args: returnv value from ROS API call
@type  args: [int, str, val]
@return: True if status code is 0

Definition at line 144 of file test_slave_api.py.

def test_slave_api.TestSlaveApi.apiSuccess (   self,
  args 
)
unit test assertion that fails if status code is not 1 and otherwise returns the value parameter.
@param args: returnv value from ROS API call
@type  args: [int, str, val]
@return: value parameter from args (arg[2] for master/slave API)

Definition at line 132 of file test_slave_api.py.

def test_slave_api.TestSlaveApi.check_TCPROS (   self,
  protocol_params 
)

Definition at line 394 of file test_slave_api.py.

def test_slave_api.TestSlaveApi.check_uri (   self,
  uri 
)
validates a URI as being http(s)

Definition at line 169 of file test_slave_api.py.

def test_slave_api.TestSlaveApi.load_profile (   self,
  filename 
)

Definition at line 103 of file test_slave_api.py.

Definition at line 110 of file test_slave_api.py.

Definition at line 459 of file test_slave_api.py.

validate node.getMasterUri(caller_id)                

Definition at line 314 of file test_slave_api.py.

validate node.getPid(caller_id)        

Definition at line 179 of file test_slave_api.py.

validate node.getPublications(caller_id)

Definition at line 221 of file test_slave_api.py.

validate node.getSubscriptions(caller_id)

Definition at line 245 of file test_slave_api.py.

validate node.paramUpdate(caller_id, key, value)

Definition at line 268 of file test_slave_api.py.

validate node.publisherUpdate(caller_id, topic, uris) 

Definition at line 339 of file test_slave_api.py.

test the state of the master based on expected node registration

Definition at line 475 of file test_slave_api.py.

make sure rosout is in publication and connection list

Definition at line 193 of file test_slave_api.py.

test that node obeys simtime (/Clock) contract

http://www.ros.org/wiki/Clock

Definition at line 202 of file test_slave_api.py.

Definition at line 402 of file test_slave_api.py.

Future: validate node.getUri(caller_id).  It would be nice to
make this official API as it provides some debugging info.

Definition at line 296 of file test_slave_api.py.


Member Data Documentation

Definition at line 110 of file test_slave_api.py.

Definition at line 137 of file test_slave_api.py.

Definition at line 137 of file test_slave_api.py.

Definition at line 110 of file test_slave_api.py.

Definition at line 110 of file test_slave_api.py.

Definition at line 110 of file test_slave_api.py.

Definition at line 83 of file test_slave_api.py.

Definition at line 83 of file test_slave_api.py.

Definition at line 83 of file test_slave_api.py.

Definition at line 83 of file test_slave_api.py.

Definition at line 83 of file test_slave_api.py.


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


test_rosmaster
Author(s): Ken Conley
autogenerated on Fri Aug 28 2015 12:33:45