1import os
2
3from rosdistro import get_distribution_cache, get_index
4
5FILES_DIR = os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'files'))
6
7
8def test_get_release_cache():
9    url = 'file://' + FILES_DIR + '/index_v2.yaml'
10    i = get_index(url)
11    get_distribution_cache(i, 'foo')
12