コード例 #1
0
ファイル: test_linker.py プロジェクト: TheDunn/flex-pypy
 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'
コード例 #2
0
ファイル: test_linker.py プロジェクト: TheDunn/flex-pypy
 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'