MCPcopy Create free account
hub / github.com/ActiveState/code / Test

Class Test

recipes/Python/496730_QuackTemplateWrapper/recipe-496730.py:79–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77
78if __name__ == "__main__":
79 class Test:
80 def __init__(self):
81 self.var = "a String!"
82 self.intvar = 20
83 self.data = [1, 2]
84 self.lut = {"key" : 999}
85
86 def get(self):
87 return "from get()!"
88
89 def factory(self):
90 return Test()
91
92 def __repr__(self):
93 return "A Test instance!"
94
95 z = Test()
96 z.child = Test()

Callers 2

factoryMethod · 0.70
recipe-496730.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected