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