Пример #1
0
def test_ckan_organization_creation():
    organization = CkanOrganization(dummy_org)
    assert organization.name == 'my-organization'
    assert organization.title == 'My Organization'
    assert organization.description == 'My org description'

    # Make sure it can be json-serialized
    serialized = organization.serialize()
    json.dumps(serialized)