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

Method test_open_bad_new_parameter

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

Source from the content-addressed store, hash-verified

111 arguments=[URL])
112
113 def test_open_bad_new_parameter(self):
114 with self.assertRaisesRegex(webbrowser.Error,
115 re.escape("Bad 'new' parameter to open(); "
116 "expected 0, 1, or 2, got 999")):
117 self._test('open',
118 options=[],
119 arguments=[URL],
120 kw=dict(new=999))
121
122
123class EdgeCommandTest(CommandTestMixin, unittest.TestCase):

Callers

nothing calls this directly

Calls 3

assertRaisesRegexMethod · 0.80
escapeMethod · 0.80
_testMethod · 0.45

Tested by

no test coverage detected