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

Method testGetCommand

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

Source from the content-addressed store, hash-verified

90 '1. Initial component\n2. Entered interactive mode')
91
92 def testGetCommand(self):
93 t = trace.FireTrace('initial object')
94 args = ('example', 'args')
95 t.AddCalledComponent('result', 'run', args, 'sample.py', 12, False,
96 action=trace.CALLED_ROUTINE)
97 self.assertEqual(t.GetCommand(), 'example args')
98
99 def testGetCommandWithQuotes(self):
100 t = trace.FireTrace('initial object')

Callers

nothing calls this directly

Calls 2

AddCalledComponentMethod · 0.95
GetCommandMethod · 0.95

Tested by

no test coverage detected