Exemple #1
0
 def test_target_relative(self):
     linker = Linker()
     lazyhref = linker.get_lazyhref('py.path.local')
     linker.set_link('py.path.local', 'py/path/local.html')
     relpath = linker.call_withbase('py/index.html', 
                 linker.get_target, 'py.path.local')
     assert relpath == 'path/local.html'
Exemple #2
0
 def test_get_target(self):
     linker = Linker()
     lazyhref = linker.get_lazyhref('py.path.local')
     linker.set_link('py.path.local', 'py/path/local.html')
     relpath = linker.get_target('py.path.local')
     assert relpath == 'py/path/local.html'