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

Method testGetCommandWithFlagQuotes

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

Source from the content-addressed store, hash-verified

104 self.assertEqual(t.GetCommand(), "example 'spaced arg'")
105
106 def testGetCommandWithFlagQuotes(self):
107 t = trace.FireTrace('initial object')
108 args = ('--example=spaced arg',)
109 t.AddCalledComponent('result', 'run', args, 'sample.py', 12, False,
110 action=trace.CALLED_ROUTINE)
111 self.assertEqual(t.GetCommand(), "--example='spaced arg'")
112
113
114class FireTraceElementTest(testutils.BaseTestCase):

Callers

nothing calls this directly

Calls 2

AddCalledComponentMethod · 0.95
GetCommandMethod · 0.95

Tested by

no test coverage detected