Ejemplo n.º 1
0
def dataset_title_test():
    """Dataset ids should map correctly."""
    assert cache.dataset_title(1) == "Preliminary Estimate of GDP - Time Series Dataset Q3 2013 - ONS"
    assert cache.dataset_title(99) == "Aerospace and Electronics Cost Indices, July 2012 Dataset - ONS"
Ejemplo n.º 2
0
def title_inclusion_test():
    """There should be no gaps in the datasets."""
    for i in range(642):
        if i != 579: #oops
            cache.dataset_title(i)
Ejemplo n.º 3
0
def test_dataset_keyerror():
    """There are only so many datasets"""
    cache.dataset_title(1000)