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"
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)
def test_dataset_keyerror(): """There are only so many datasets""" cache.dataset_title(1000)