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

Method test_element_create_from_errors

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

Source from the content-addressed store, hash-verified

203 self.assertIn('plain.arrow', style.element_names())
204
205 def test_element_create_from_errors(self):
206 style = self.style
207 with self.assertRaises(IndexError):
208 style.element_create('plain.newelem', 'from')
209 with self.assertRaisesRegex(TclError,
210 'theme "spam" (does not|doesn\'t) exist'):
211 style.element_create('plain.newelem', 'from', 'spam')
212
213 def test_element_create_image(self):
214 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