MCPcopy Create free account
hub / github.com/Distrotech/reportlab / getDataBlock

Method getDataBlock

tests/test_table_layout.py:19–34  ·  view source on GitHub ↗

Helper - data for our spanned table

(self)

Source from the content-addressed store, hash-verified

17
18
19 def getDataBlock(self):
20 "Helper - data for our spanned table"
21 return [
22 # two rows are for headers
23 ['Region','Product','Period',None,None,None,'Total'],
24 [None,None,'Q1','Q2','Q3','Q4',None],
25
26 # now for data
27 ['North','Spam',100,110,120,130,460],
28 ['North','Eggs',101,111,121,131,464],
29 ['North','Guinness',102,112,122,132,468],
30
31 ['South','Spam',100,110,120,130,460],
32 ['South','Eggs',101,111,121,131,464],
33 ['South','Guinness',102,112,122,132,468],
34 ]
35
36 def test_document(self):
37

Callers 1

test_documentMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected