Public Member Functions | |
def | __init__ (self, args, kwds) |
def | apiError (self, args, msg=None) |
def | apiFail (self, args) |
def | apiSuccess (self, args) |
def | check_TCPROS (self, protocol_params) |
def | check_uri (self, uri) |
def | load_profile (self, filename) |
def | setUp (self) |
def | test_getBusInfo (self) |
def | test_getMasterUri (self) |
def | test_getPid (self) |
def | test_getPublications (self) |
def | test_getSubscriptions (self) |
def | test_paramUpdate (self) |
validate node.paramUpdate(caller_id, key, value) More... | |
def | test_publisherUpdate (self) |
def | test_registrations (self) |
test the state of the master based on expected node registration More... | |
def | test_rosout (self) |
def | test_simtime (self) |
def | testRequestTopic (self) |
def | xtest_getUri (self) |
Public Attributes | |
caller_id | |
last_code | |
last_val | |
master | |
node | |
node_api | |
ns | |
required_pubs | |
required_subs | |
test_node | |
test_node_profile | |
Definition at line 84 of file test_slave_api.py.
def test_slave_api.TestSlaveApi.__init__ | ( | self, | |
args, | |||
kwds | |||
) |
Definition at line 86 of file test_slave_api.py.
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 158 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 147 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 135 of file test_slave_api.py.
def test_slave_api.TestSlaveApi.check_TCPROS | ( | self, | |
protocol_params | |||
) |
Definition at line 397 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 172 of file test_slave_api.py.
def test_slave_api.TestSlaveApi.load_profile | ( | self, | |
filename | |||
) |
Definition at line 106 of file test_slave_api.py.
def test_slave_api.TestSlaveApi.setUp | ( | self | ) |
Definition at line 113 of file test_slave_api.py.
def test_slave_api.TestSlaveApi.test_getBusInfo | ( | self | ) |
Definition at line 462 of file test_slave_api.py.
def test_slave_api.TestSlaveApi.test_getMasterUri | ( | self | ) |
validate node.getMasterUri(caller_id)
Definition at line 317 of file test_slave_api.py.
def test_slave_api.TestSlaveApi.test_getPid | ( | self | ) |
validate node.getPid(caller_id)
Definition at line 182 of file test_slave_api.py.
def test_slave_api.TestSlaveApi.test_getPublications | ( | self | ) |
validate node.getPublications(caller_id)
Definition at line 224 of file test_slave_api.py.
def test_slave_api.TestSlaveApi.test_getSubscriptions | ( | self | ) |
validate node.getSubscriptions(caller_id)
Definition at line 248 of file test_slave_api.py.
def test_slave_api.TestSlaveApi.test_paramUpdate | ( | self | ) |
validate node.paramUpdate(caller_id, key, value)
Definition at line 271 of file test_slave_api.py.
def test_slave_api.TestSlaveApi.test_publisherUpdate | ( | self | ) |
validate node.publisherUpdate(caller_id, topic, uris)
Definition at line 342 of file test_slave_api.py.
def test_slave_api.TestSlaveApi.test_registrations | ( | self | ) |
test the state of the master based on expected node registration
Definition at line 478 of file test_slave_api.py.
def test_slave_api.TestSlaveApi.test_rosout | ( | self | ) |
make sure rosout is in publication and connection list
Definition at line 196 of file test_slave_api.py.
def test_slave_api.TestSlaveApi.test_simtime | ( | self | ) |
test that node obeys simtime (/Clock) contract http://www.ros.org/wiki/Clock
Definition at line 205 of file test_slave_api.py.
def test_slave_api.TestSlaveApi.testRequestTopic | ( | self | ) |
Definition at line 405 of file test_slave_api.py.
def test_slave_api.TestSlaveApi.xtest_getUri | ( | self | ) |
Future: validate node.getUri(caller_id). It would be nice to make this official API as it provides some debugging info.
Definition at line 299 of file test_slave_api.py.
test_slave_api.TestSlaveApi.caller_id |
Definition at line 114 of file test_slave_api.py.
test_slave_api.TestSlaveApi.last_code |
Definition at line 144 of file test_slave_api.py.
test_slave_api.TestSlaveApi.last_val |
Definition at line 143 of file test_slave_api.py.
test_slave_api.TestSlaveApi.master |
Definition at line 119 of file test_slave_api.py.
test_slave_api.TestSlaveApi.node |
Definition at line 129 of file test_slave_api.py.
test_slave_api.TestSlaveApi.node_api |
Definition at line 118 of file test_slave_api.py.
test_slave_api.TestSlaveApi.ns |
Definition at line 89 of file test_slave_api.py.
test_slave_api.TestSlaveApi.required_pubs |
Definition at line 93 of file test_slave_api.py.
test_slave_api.TestSlaveApi.required_subs |
Definition at line 94 of file test_slave_api.py.
test_slave_api.TestSlaveApi.test_node |
Definition at line 92 of file test_slave_api.py.
test_slave_api.TestSlaveApi.test_node_profile |
Definition at line 100 of file test_slave_api.py.