MCPcopy Create free account
hub / github.com/seleniumbase/SeleniumBase / assert_in

Method assert_in

seleniumbase/core/sb_cdp.py:3418–3425  ·  view source on GitHub ↗
(self, first, second, msg=None)

Source from the content-addressed store, hash-verified

3416 )
3417
3418 def assert_in(self, first, second, msg=None):
3419 if first not in second:
3420 if not msg:
3421 raise AssertionError("%s is not in %s." % (first, second))
3422 else:
3423 raise AssertionError(
3424 "%s is not in %s. (%s)" % (first, second, msg)
3425 )
3426
3427 def assert_not_in(self, first, second, msg=None):
3428 if first in second:

Callers 4

test_todomvcMethod · 0.45
test_console_loggingMethod · 0.45

Calls

no outgoing calls

Tested by 3

test_todomvcMethod · 0.36
test_console_loggingMethod · 0.36