示例#1
0
def test_get_license_none_type2():
    source = {}
    actual_license_version = sm._get_license_version(source)

    assert actual_license_version is None
示例#2
0
def test_get_license_none_type3():
    source = _get_resource_json("no_license.json")
    actual_license_version = sm._get_license_version(source)

    assert actual_license_version is None
示例#3
0
def test_get_license():
    source = _get_resource_json("license_source.json")
    actual_license_version = sm._get_license_version(source)
    expected_license_version = "CC-BY-NC-SA 4.0"

    assert actual_license_version == expected_license_version