Exemplo n.º 1
0
def test_parse_full_name_single_name():
    from stac.client import _parse_full_name
    name = 'my-python-lib'
    group, artifact = _parse_full_name(name)

    assert '' == group
    assert 'my-python-lib' == artifact
Exemplo n.º 2
0
def test_parse_full_name_group_and_artifact():
    from stac.client import _parse_full_name
    name = 'com.example.services.auth'
    group, artifact = _parse_full_name(name)

    assert 'com.example.services' == group
    assert 'auth' == artifact