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

Method test_fixresult

Lib/test/test_tkinter/test_colorchooser.py:33–40  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

31 self.assertEqual(cc.options['initialcolor'], '#d2691e')
32
33 def test_fixresult(self):
34 cc = self.cc
35 self.assertEqual(cc._fixresult(self.root, ()), (None, None))
36 self.assertEqual(cc._fixresult(self.root, ''), (None, None))
37 self.assertEqual(cc._fixresult(self.root, 'chocolate'),
38 ((210, 105, 30), 'chocolate'))
39 self.assertEqual(cc._fixresult(self.root, '#4a3c8c'),
40 ((74, 60, 140), '#4a3c8c'))
41
42
43class DefaultRootTest(AbstractDefaultRootTest, unittest.TestCase):

Callers

nothing calls this directly

Calls 2

assertEqualMethod · 0.45
_fixresultMethod · 0.45

Tested by

no test coverage detected