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

Method test_explicit_browser

Lib/test/test_webbrowser.py:374–379  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

372 self.assertIn(f'open location "{url}"', script)
373
374 def test_explicit_browser(self):
375 browser = webbrowser.MacOSXOSAScript("safari")
376 browser.open("https://python.org")
377 script = self.popen_pipe.pipe.getvalue()
378 self.assertIn('tell application "safari"', script)
379 self.assertIn('open location "https://python.org"', script)
380
381 def test_reject_dash_prefixes(self):
382 with self.assertRaisesRegex(

Callers

nothing calls this directly

Calls 3

openMethod · 0.95
assertInMethod · 0.80
getvalueMethod · 0.45

Tested by

no test coverage detected