utest_rosstack::RosstackTestCase Class Reference

Process-level tests of rosstack executable. More...

List of all members.

Public Member Functions

def check_ordered_list
def check_unordered_list
def echeck_ordered_list
def echeck_unordered_list
def erosstack_fail
 assert that rosstack fails on the specified args.
def erosstack_succeed
 assert that rosstack succeeds on the specified args
def erun_rosstack
def erun_rosstack_status
def rosstack_fail
 assert that rosstack fails on the specified args
def rosstack_succeed
 assert that rosstack succeeds on the specified args
def run_rosstack
def run_rosstack_status
 runs rospack with ROS_ROOT set to .
def test_contents
def test_fake_option
def test_invalid_option
def test_no_option
 ARG PARSING.
def test_no_package_allowed
def test_no_package_allowed_bad
def test_path_precendence

Private Member Functions

def _run_rosstack
 runs rosstack with ROS_ROOT set to .

Detailed Description

Process-level tests of rosstack executable.

Definition at line 54 of file utest_rosstack.py.


Member Function Documentation

def utest_rosstack::RosstackTestCase::_run_rosstack (   self,
  ros_root,
  ros_package_path,
  pkgname,
  command 
) [private]

runs rosstack with ROS_ROOT set to .

/test and ROS_PACKAGE_PATH unset

Returns:
int, str: return code, stdout

Definition at line 58 of file utest_rosstack.py.

def utest_rosstack::RosstackTestCase::check_ordered_list (   self,
  command,
  tests 
)

Definition at line 142 of file utest_rosstack.py.

def utest_rosstack::RosstackTestCase::check_unordered_list (   self,
  command,
  tests 
)

Definition at line 163 of file utest_rosstack.py.

def utest_rosstack::RosstackTestCase::echeck_ordered_list (   self,
  command,
  tests 
)

Definition at line 154 of file utest_rosstack.py.

def utest_rosstack::RosstackTestCase::echeck_unordered_list (   self,
  command,
  tests 
)

Definition at line 173 of file utest_rosstack.py.

def utest_rosstack::RosstackTestCase::erosstack_fail (   self,
  ros_root,
  ros_package_path,
  package,
  command 
)

assert that rosstack fails on the specified args.

includes ROS_ROOT and ROS_PACKAGE_PATH

Definition at line 125 of file utest_rosstack.py.

def utest_rosstack::RosstackTestCase::erosstack_succeed (   self,
  ros_root,
  ros_package_path,
  package,
  command 
)

assert that rosstack succeeds on the specified args

Definition at line 136 of file utest_rosstack.py.

def utest_rosstack::RosstackTestCase::erun_rosstack (   self,
  ros_root,
  ros_package_path,
  pkgname,
  command 
)
Returns:
str: stdout

Definition at line 105 of file utest_rosstack.py.

def utest_rosstack::RosstackTestCase::erun_rosstack_status (   self,
  ros_root,
  ros_package_path,
  pkgname,
  command 
)
Returns:
int: status code

Definition at line 115 of file utest_rosstack.py.

def utest_rosstack::RosstackTestCase::rosstack_fail (   self,
  package,
  command 
)

assert that rosstack fails on the specified args

Definition at line 119 of file utest_rosstack.py.

def utest_rosstack::RosstackTestCase::rosstack_succeed (   self,
  package,
  command 
)

assert that rosstack succeeds on the specified args

Definition at line 130 of file utest_rosstack.py.

def utest_rosstack::RosstackTestCase::run_rosstack (   self,
  pkgname,
  command 
)
Returns:
str: stdout

Definition at line 100 of file utest_rosstack.py.

def utest_rosstack::RosstackTestCase::run_rosstack_status (   self,
  pkgname,
  command 
)

runs rospack with ROS_ROOT set to .

/test and ROS_PACKAGE_PATH unset

Returns:
int: status code

Definition at line 110 of file utest_rosstack.py.

def utest_rosstack::RosstackTestCase::test_contents (   self  ) 

Definition at line 207 of file utest_rosstack.py.

def utest_rosstack::RosstackTestCase::test_fake_option (   self  ) 

Definition at line 189 of file utest_rosstack.py.

def utest_rosstack::RosstackTestCase::test_invalid_option (   self  ) 

Definition at line 192 of file utest_rosstack.py.

def utest_rosstack::RosstackTestCase::test_no_option (   self  ) 

ARG PARSING.

Definition at line 186 of file utest_rosstack.py.

def utest_rosstack::RosstackTestCase::test_no_package_allowed (   self  ) 

Definition at line 195 of file utest_rosstack.py.

def utest_rosstack::RosstackTestCase::test_no_package_allowed_bad (   self  ) 

Definition at line 201 of file utest_rosstack.py.

def utest_rosstack::RosstackTestCase::test_path_precendence (   self  ) 

Definition at line 213 of file utest_rosstack.py.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables


test_rospack
Author(s): Brian Gerkey
autogenerated on Fri Jan 11 11:39:07 2013