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

Method test_element_create_errors

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

Source from the content-addressed store, hash-verified

189 self.assertIsInstance(optname, str)
190
191 def test_element_create_errors(self):
192 style = self.style
193 with self.assertRaises(TypeError):
194 style.element_create('plain.newelem')
195 with self.assertRaisesRegex(TclError, 'No such element type spam'):
196 style.element_create('plain.newelem', 'spam')
197
198 def test_element_create_from(self):
199 style = self.style

Callers

nothing calls this directly

Calls 3

element_createMethod · 0.80
assertRaisesRegexMethod · 0.80
assertRaisesMethod · 0.45

Tested by

no test coverage detected