def test_normalize_path_absolute(self): assert config.normalize_path('/foo/bar', '/baz') == '/foo/bar'
def test_normalize_path_userexpand(self): assert config.normalize_path('~', '/baz') == os.path.expanduser('~')
def test_normalize_path_trailing_slash(self): assert config.normalize_path('/foo/') == '/foo'
def test_normalize_path_relative(self): assert config.normalize_path('foo/bar', '/baz') == '/baz/foo/bar'