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'
def test_unregister_alias_path(): registry.unregister('/tmp') assert '/tmp' not in registry.get_registry() assert 'foobar' not in registry.get_aliases()