def test_ilo_std_data(): d = SDMXML('https://www.ilo.org/sdmx/rest', 'ILO', '2.1', 'specific').get_sdmx('DF_YI_ALL_EMP_TEMP_SEX_AGE_NB', keys={ 'SEX': 'SEX_T', 'AGE': 'AGE_5YRBANDS_TOTAL' }) check_data(d)
def test_estat_data(): d = SDMXML('http://ec.europa.eu/eurostat/SDMX/diss-web/rest', 'ESTAT', '2.1', 'specific').get_sdmx('nama_10_gdp', keys={ 'FREQ': 'A', 'GEO': 'FR', 'UNIT': 'CLV10_MEUR', 'NA_ITEM': 'B1GQ' }) check_data(d)
def test_wb_dsd(): df = SDMXML('http://api.worldbank.org/v2/sdmx/rest', 'WB', '2.1', 'specific').dsd('WDI') check_dsd(df)
def test_estat_dsd(): df = SDMXML('http://ec.europa.eu/eurostat/SDMX/diss-web/rest', 'ESTAT', '2.1', 'specific').dsd('DSD_nama_10_gdp') check_dsd(df)
def test_fr1_dsd(): df = SDMXML('https://bdm.insee.fr/series/sdmx', 'FR1', '2.1', 'specific').dsd('CHOMAGE-TRIM-NATIONAL') check_dsd(df)
def test_ilo_std_dataflow(): df = SDMXML('https://www.ilo.org/sdmx/rest', 'ILO', '2.1', 'specific').dataflows() check_dataflow(df)
def test_ilo_dataflow(): df = SDMXML('https://www.ilo.org/ilostat/sdmx/ws/rest', 'ILO', 'ilo', 'specific').dataflows() check_dataflow(df)
def test_wb_dataflow(): df = SDMXML('http://api.worldbank.org/v2/sdmx/rest', 'WB', '2.1', 'specific').dataflows() check_dataflow(df)
def test_estat_dataflow(): df = SDMXML('http://ec.europa.eu/eurostat/SDMX/diss-web/rest', 'ESTAT', '2.1', 'specific').dataflows() check_dataflow(df)
def test_fr1_chomage_dataflow(): df = SDMXML('https://bdm.insee.fr/series/sdmx', 'FR1', '2.1', 'specific').dataflow('CHOMAGE-TRIM-NATIONAL') assert df assert isinstance(df, dict)
def test_fr1_dataflow(): df = SDMXML('https://bdm.insee.fr/series/sdmx', 'FR1', '2.1', 'specific').dataflows() check_dataflow(df)
def test_fr1_data(): d = SDMXML('https://bdm.insee.fr/series/sdmx', 'FR1', '2.1', 'specific').get_sdmx('CHOMAGE-TRIM-NATIONAL') check_data(d)
def test_ilo_std_dsd(): df = SDMXML('https://www.ilo.org/sdmx/rest', 'ILO', '2.1', 'specific').dsd('DF_YI_ALL_EMP_TEMP_SEX_AGE_NB') check_dsd(df)
def test_ilo_dsd(): df = SDMXML('https://www.ilo.org/ilostat/sdmx/ws/rest', 'ILO', 'ilo', 'specific').dsd('CP_ALL_ALL') check_dsd(df)