Exemplo n.º 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"
Exemplo n.º 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"]
Exemplo n.º 3
0
 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')
Exemplo n.º 4
0
 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)
Exemplo n.º 5
0
 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)
Exemplo n.º 6
0
 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')