def test_tupleize_datasets(): ds = [{ "categories": ["resource", "in ground"], }] expected = [{ "categories": (u"resource", u"in ground"), }] assert expected == tupleize_categories(ds)
def test_tupleize_datasets(): ds = [{ 'categories': ['resource', 'in ground'], }] expected = [{ 'categories': (u'resource', u'in ground'), }] assert expected == tupleize_categories(ds)