(indent=0, indent_size=2)
| 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) |
no outgoing calls
no test coverage detected