Add tests for TestCase.assertDictEqual() (#11154)

This commit is contained in:
Sebastian Rittau
2023-12-12 16:41:18 +01:00
committed by GitHub
parent 1600850258
commit fdc195465b
2 changed files with 52 additions and 1 deletions

View File

@@ -249,6 +249,8 @@ class TestCase:
def assertListEqual(self, list1: list[Any], list2: list[Any], msg: Any = None) -> None: ...
def assertTupleEqual(self, tuple1: tuple[Any, ...], tuple2: tuple[Any, ...], msg: Any = None) -> None: ...
def assertSetEqual(self, set1: AbstractSet[object], set2: AbstractSet[object], msg: Any = None) -> None: ...
# assertDictEqual accepts only true dict instances. We can't use that here, since that would make
# assertDictEqual incompatible with TypedDict.
def assertDictEqual(self, d1: Mapping[Any, object], d2: Mapping[Any, object], msg: Any = None) -> None: ...
def fail(self, msg: Any = None) -> NoReturn: ...
def countTestCases(self) -> int: ...