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

Method _test_option_joinstyle

Lib/test/test_tkinter/test_widgets.py:852–856  ·  view source on GitHub ↗
(self, c, factory)

Source from the content-addressed store, hash-verified

850 10, 0, 11.2, 13.6, -10, '0.1i')
851
852 def _test_option_joinstyle(self, c, factory):
853 for joinstyle in 'bevel', 'miter', 'round':
854 i = factory(joinstyle=joinstyle)
855 self.assertEqual(c.itemcget(i, 'joinstyle'), joinstyle)
856 self.assertRaises(TclError, factory, joinstyle='spam')
857
858 def _test_option_smooth(self, c, factory):
859 for smooth in 1, True, '1', 'true', 'yes', 'on':

Callers 2

test_create_lineMethod · 0.95
test_create_polygonMethod · 0.95

Calls 4

factoryFunction · 0.50
assertEqualMethod · 0.45
itemcgetMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected