Example #1
0
def test_register_alias_path():
    registry.register('/tmp', 'foobar')
    projects = registry.get_registry()
    assert '/tmp' in projects
    assert projects['/tmp']['alias'] == 'foobar'
    aliases = registry.get_aliases()
    assert 'foobar' in aliases
    assert aliases['foobar'] == '/tmp'
Example #2
0
def test_register_alias_path():
    registry.register('/tmp', 'foobar')
    projects = registry.get_registry()
    assert '/tmp' in projects
    assert projects['/tmp']['alias'] == 'foobar'
    aliases = registry.get_aliases()
    assert 'foobar' in aliases
    assert aliases['foobar'] == '/tmp'
Example #3
0
def test_unregister_alias_path():
    registry.unregister('/tmp')
    assert '/tmp' not in registry.get_registry()
    assert 'foobar' not in registry.get_aliases()
Example #4
0
def test_unregister_alias_path():
    registry.unregister('/tmp')
    assert '/tmp' not in registry.get_registry()
    assert 'foobar' not in registry.get_aliases()