test_classes: Mention actual and expected count in assert_length.

This commit is contained in:
Shubham Padia
2025-04-07 10:27:11 +00:00
committed by Tim Abbott
parent 8ee80f29ae
commit 12afeee277

View File

@@ -1282,7 +1282,9 @@ Output:
for item in items:
print(item)
print(f"\nexpected length: {count}\nactual length: {actual_count}")
raise AssertionError(f"{type(items)} is of unexpected size!")
raise AssertionError(
f"{type(items)} is of unexpected size! Expected count: {count}, actual count: {actual_count}."
)
@contextmanager
def assert_memcached_count(self, count: int) -> Iterator[None]: