MCPcopy Create free account
hub / github.com/pybind/pybind11 / test_isinstance

Function test_isinstance

tests/test_class.py:280–283  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

278
279
280def test_isinstance():
281 objects = [(), {}, m.Pet("Polly", "parrot")] + [m.Dog("Molly")] * 4
282 expected = (True, True, True, True, True, False, False)
283 assert m.check_instances(objects) == expected
284
285
286def test_mismatched_holder():

Callers

nothing calls this directly

Calls 2

PetMethod · 0.45
DogMethod · 0.45

Tested by

no test coverage detected