def test_download_targets_data():
    from rosdep2.rep3 import download_targets_data, REP3_TARGETS_URL
    from rosdep2 import DownloadFailure
    data = download_targets_data(REP3_TARGETS_URL)
    assert type(data) is dict
    assert 'electric' in data
    assert data in 'fuerte'
    assert 'lucid' in data['fuerte']
    assert 'oneiric' in data['fuerte']

    try:
        download_targets_data(targets_url='http://bad.ros.org/foo.yaml')
        assert False, "should have raised"
    except DownloadFailure:
        pass
dataset/ETHPy150Open ros-infrastructure/rosdep/test/test_rosdep_rep3.py/test_download_targets_data/swapped operands of `in`