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