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

Method testGetCommandWithQuotes

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

Source from the content-addressed store, hash-verified

97 self.assertEqual(t.GetCommand(), 'example args')
98
99 def testGetCommandWithQuotes(self):
100 t = trace.FireTrace('initial object')
101 args = ('example', 'spaced arg')
102 t.AddCalledComponent('result', 'run', args, 'sample.py', 12, False,
103 action=trace.CALLED_ROUTINE)
104 self.assertEqual(t.GetCommand(), "example 'spaced arg'")
105
106 def testGetCommandWithFlagQuotes(self):
107 t = trace.FireTrace('initial object')

Callers

nothing calls this directly

Calls 2

AddCalledComponentMethod · 0.95
GetCommandMethod · 0.95

Tested by

no test coverage detected