call site 7 for xml.Tag.__init__
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 17
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
apigen/source/html.py - line 166
159
160
161
162
163
164
165
166
167
168
169
170
   def create_html(mod):
       # out is some kind of stream
       #*[html.tr(html.td(i.name)) for i in mod.get_children()]
       lines = mod.path.open().readlines()
       
       enchanter = HtmlEnchanter(mod)
       enc = get_module_encoding(mod.path)
->     doc = HTMLDocument(enc)
       for i, row in enumerate(lines):
           row = enchanter.enchant_row(i + 1, row)
           doc.add_row(i + 1, row)
       return unicode(doc)
apigen/source/html.py - line 71
63
64
65
66
67
68
69
70
71
72
73
74
75
76
   def __init__(self, encoding, tokenizer=None):
       self.encoding = encoding
   
       self.html = root = html.html()
       self.head = head = self.create_head()
       root.append(head)
       self.body = body = self.create_body()
       root.append(body)
->     self.table, self.tbody = table, tbody = self.create_table()
       body.append(table)
   
       if tokenizer is None:
           tokenizer = Tokenizer(PythonSchema)
       self.tokenizer = tokenizer
apigen/source/html.py - line 142
140
141
142
143
144
   def create_table(self):
       table = html.table(cellpadding='0', cellspacing='0')
->     tbody = html.tbody()
       table.append(tbody)
       return table, tbody