MCPcopy
hub / github.com/google/python-fire / testAddInstantiatedClass

Method testAddInstantiatedClass

fire/trace_test.py:68–76  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

66 '1. Initial component\n2. Called routine "run" (sample.py:12)')
67
68 def testAddInstantiatedClass(self):
69 t = trace.FireTrace('initial object')
70 args = ('example', 'args')
71 t.AddCalledComponent(
72 'Classname', 'classname', args, 'sample.py', 12, False,
73 action=trace.INSTANTIATED_CLASS)
74 target = """1. Initial component
752. Instantiated class "classname" (sample.py:12)"""
76 self.assertEqual(str(t), target)
77
78 def testAddCompletionScript(self):
79 t = trace.FireTrace('initial object')

Callers

nothing calls this directly

Calls 1

AddCalledComponentMethod · 0.95

Tested by

no test coverage detected