Exemplo n.º 1
0
def test_license():
    result = {
        "name": "Apache 2.0",
        "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
    }
    output = License(result)
    assert output.name == "Apache 2.0"
    assert output.url == "http://www.apache.org/licenses/LICENSE-2.0.html"
    assert output.to_primitive() == result