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

Method test_path_ok_file

Lib/idlelib/idle_test/test_query.py:233–240  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

231 self.assertEqual(dialog.path_error['text'], '')
232
233 def test_path_ok_file(self):
234 dialog = self.Dummy_HelpSource('')
235 for platform, prefix in ('darwin', 'file://'), ('other', ''):
236 with self.subTest():
237 query.platform = platform
238 dialog.path.set(__file__)
239 self.assertEqual(dialog.path_ok(), prefix + __file__)
240 self.assertEqual(dialog.path_error['text'], '')
241
242
243class HelpsourceEntryokTest(unittest.TestCase):

Callers

nothing calls this directly

Calls 4

path_okMethod · 0.95
subTestMethod · 0.45
setMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected