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

Method test_element_create_from

Lib/test/test_ttk/test_style.py:198–203  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

196 style.element_create('plain.newelem', 'spam')
197
198 def test_element_create_from(self):
199 style = self.style
200 style.element_create('plain.background', 'from', 'default')
201 self.assertIn('plain.background', style.element_names())
202 style.element_create('plain.arrow', 'from', 'default', 'rightarrow')
203 self.assertIn('plain.arrow', style.element_names())
204
205 def test_element_create_from_errors(self):
206 style = self.style

Callers

nothing calls this directly

Calls 3

element_createMethod · 0.80
assertInMethod · 0.80
element_namesMethod · 0.80

Tested by

no test coverage detected