Go to the documentation of this file.00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 from __future__ import print_function
00012 import os
00013 from rocon_python_utils.ros import package_index_from_package_path
00014 
00015 
00016 
00017 
00018 
00019 def test_package_index_discovery():
00020     print('Testing package index discovery')
00021     ros_package_path = os.getenv('ROS_PACKAGE_PATH', '')
00022     ros_package_path = [x for x in ros_package_path.split(':') if x]
00023     package_index = package_index_from_package_path(ros_package_path)
00024     assert 'rocon_python_utils' in package_index.keys()