Exemplo n.º 1
0
def test_resource_by_name():
    resource = SpigotResource.from_name("Commons")
    assert resource is not None
    assert resource.name == 'Commons'
    assert resource.resource_id == 15290
    assert resource.author_name == "MumbosHut"
    assert resource.external is False
Exemplo n.º 2
0
def test_resource_by_name():
    resource = SpigotResource.from_name("Commons")
    assert resource is not None
    assert resource.name == 'Commons'
    assert resource.resource_id == 15290
    assert resource.author_name == "MumbosHut"
    assert resource.external is False
Exemplo n.º 3
0
def test_invalid_resource():
    assert SpigotResource.from_name("_djfkjl4kj24242") is None
Exemplo n.º 4
0
def test_invalid_resource():
    assert SpigotResource.from_name("_djfkjl4kj24242") is None