Skip to content

Commit 5bbc1ca

Browse files
derek73claude
andcommitted
test: add assertIs/assertIsNot shims to HumanNameTestBase
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 8b63454 commit 5bbc1ca

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/base.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,9 @@ def assertIn(self, member: object, container: object, msg: object = None) -> Non
4141

4242
def assertNotIn(self, member: object, container: object, msg: object = None) -> None:
4343
assert member not in container, msg # type: ignore[operator]
44+
45+
def assertIs(self, first: object, second: object, msg: object = None) -> None:
46+
assert first is second, msg or f"{first!r} is not {second!r}"
47+
48+
def assertIsNot(self, first: object, second: object, msg: object = None) -> None:
49+
assert first is not second, msg or f"{first!r} is {second!r}"

0 commit comments

Comments
 (0)