fix fc1901d for py3, again. and add 2 assertions

This commit is contained in:
Takayuki Shimizukawa
2014-08-22 13:01:11 +09:00
parent 2987330a11
commit 799ae87ce0
2 changed files with 6 additions and 2 deletions

View File

@@ -1,5 +1,7 @@
from mod1 import func1, Class1
from mod2 import (
from __future__ import absolute_import
from .mod1 import func1, Class1
from .mod2 import (
func2,
Class2,
)

View File

@@ -39,3 +39,5 @@ def test_simple(app):
result = (app.outdir / 'index.html').text(encoding='utf-8')
assert result.count('href="_modules/spam/mod1.html#func1"') == 2
assert result.count('href="_modules/spam/mod2.html#func2"') == 2
assert result.count('href="_modules/spam/mod1.html#Class1"') == 2
assert result.count('href="_modules/spam/mod2.html#Class2"') == 2