コード例 #1
0
def test_access_via_dict():
    license = LicenseRegister()["cc-by"]
    license_dict = license.as_dict()
    assert license_dict["od_conformance"] == "approved"
    assert license_dict["osd_conformance"] == "not reviewed"
コード例 #2
0
def test_access_via_dict():
    license = LicenseRegister()["cc-by"]
    license_dict = license.as_dict()
    assert license_dict["is_okd_compliant"]
    assert not license_dict["is_osi_compliant"]
コード例 #3
0
ファイル: test_license.py プロジェクト: ASIMCC/ckan-1
 def test_access_via_dict(self):
     license = LicenseRegister()['cc-by']
     license_dict = license.as_dict()
     assert_equal(license_dict['od_conformance'], 'approved')
     assert_equal(license_dict['osd_conformance'], 'not reviewed')
コード例 #4
0
ファイル: test_license.py プロジェクト: ASIMCC/ckan-1
 def test_access_via_dict(self):
     license = LicenseRegister()['cc-by']
     license_dict = license.as_dict()
     assert_equal(license_dict['is_okd_compliant'], True)
     assert_equal(license_dict['is_osi_compliant'], False)
コード例 #5
0
ファイル: test_license.py プロジェクト: HatemAlSum/ckan
 def test_access_via_dict(self):
     license = LicenseRegister()['cc-by']
     license_dict = license.as_dict()
     assert_equal(license_dict['is_okd_compliant'], True)
     assert_equal(license_dict['is_osi_compliant'], False)
コード例 #6
0
ファイル: test_license.py プロジェクト: HatemAlSum/ckan
 def test_access_via_dict(self):
     license = LicenseRegister()['cc-by']
     license_dict = license.as_dict()
     assert_equal(license_dict['od_conformance'], 'approved')
     assert_equal(license_dict['osd_conformance'], 'not reviewed')