MCPcopy Index your code
hub / github.com/python/cpython / sample

Method sample

Lib/test/test_ttk_textonly.py:233–241  ·  view source on GitHub ↗
(indent=0, indent_size=2)

Source from the content-addressed store, hash-verified

231
232 def test_format_layoutlist(self):
233 def sample(indent=0, indent_size=2):
234 return ttk._format_layoutlist(
235 [('a', {'other': [1, 2, 3], 'children':
236 [('b', {'children':
237 [('c', {'children':
238 [('d', {'nice': 'opt'})], 'something': (1, 2)
239 })]
240 })]
241 })], indent=indent, indent_size=indent_size)[0]
242
243 def sample_expected(indent=0, indent_size=2):
244 spaces = lambda amount=0: ' ' * (amount + indent)

Callers 15

mainFunction · 0.45
test_random_filesMethod · 0.45
files_to_testMethod · 0.45
test_c_signal_dictMethod · 0.45
test_sampleMethod · 0.45
test_sample_inputsMethod · 0.45
test_sample_on_setsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected