call site 13 for path.local.ensure
apigen/source/testing/test_html.py - line 45
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
   def test_basic():
       tmp = py.test.ensuretemp("sourcehtml")
       inp = tmp.ensure("one.py")
       inp.write(py.code.Source("""
       def func_one():
           pass
       
       def func_two(x, y):
           x = 1
           y = 2
           return x + y
       
       class B:
           pass
       
       class A(B):
           def meth1(self):
               pass
           
           def meth2(self):
               pass
       """))
       
->     testfile = create_html_and_show(inp)
       data = testfile.open().read()
       assert data.find('<a href="#func_one"') != -1
       assert data.find('<a href="#func_two"') != -1
       assert data.find('<a href="#B"') != -1
       assert data.find('<a href="#A"') != -1
       assert data.find('<a href="#A.meth1"') != -1
apigen/source/testing/test_html.py - line 18
15
16
17
18
19
20
   def create_html_and_show(path):
       mod = parse_path(path)
       html = create_html(mod)
->     testfile = py.test.ensuretemp("htmloutput").ensure("test.html")
       testfile.write(unicode(html))
       return testfile