def test_current_distro_codename(): import rospkg.environment from rospkg.distro import current_distro_codename assert 'awesome' == current_distro_codename(env={'ROS_DISTRO': 'awesome'}) env = {rospkg.environment.ROS_ETC_DIR: get_etc_path()} val = current_distro_codename(env=env) assert 'rosawesome' == current_distro_codename(env=env), val
def test_current_distro_codename(): import rospkg.environment from rospkg.distro import current_distro_codename assert 'awesome' == current_distro_codename(env={'ROS_DISTRO':'awesome'}) env={rospkg.environment.ROS_ETC_DIR: get_etc_path()} val = current_distro_codename(env=env) assert 'rosawesome' == current_distro_codename(env=env), val
def test_current_distro_codename(): import rospkg.environment from rospkg.distro import current_distro_codename assert "awesome" == current_distro_codename(env={"ROS_DISTRO": "awesome"}) env = {rospkg.environment.ROS_ETC_DIR: get_etc_path()} val = current_distro_codename(env=env) assert "rosawesome" == current_distro_codename(env=env), val