Bot releases are hidden (Show)
Present
and Absent
for absence checks in assert_json_subset()
.Exists
in favor of Present
and Absent
inassert_json_subset()
.Published by srittau almost 2 years ago
assert_not_regex()
.Published by srittau almost 4 years ago
assert_json_subset()
can now check for the existence or non-existenceExists
helper.Exists
) object member names in the first argument toassert_json_subset()
now raise a TypeError
.Published by srittau about 4 years ago
Published by srittau almost 5 years ago
AssertRaisesContext
and AssertWarnsContext
now return themselves__enter__()
is called. By extension it now easier to calladd_test()
with assert_raises()
et al:with assert_raises(KeyError) as context:
context.add_test(...)
...
AssertRaisesContext.exc_val
property to access the caughtwith assert_raises(KeyError) as context:
...
assert_equal("expected message", str(context.exc_val))
Published by srittau over 5 years ago
AssertRaisesContext
and sub-classes are now generic over thePublished by srittau about 6 years ago
assert_json_subset()
.Published by srittau about 6 years ago
Published by srittau about 6 years ago
assert_dict_equal()
.assert_dict_superset()
.assert_equal()
: Use assert_dict_equal()
if applicable.Published by srittau about 6 years ago
fail()
is now marked with NoReturn
in type stub.Published by srittau over 6 years ago
AssertRaisesContext.__exit__()
.Published by srittau over 6 years ago
Published by srittau almost 7 years ago
assert_raises_regex()
: Handle exceptions without any message correctly.Published by srittau almost 7 years ago
msg
argument with msg_fmt
in all assertions (except fail()
).format()
with appropriate keyword arguments is now called on thesemsg_fmt
argument.Published by srittau almost 7 years ago
Published by srittau almost 7 years ago
Published by srittau almost 7 years ago
Distribute as wheel.
Published by srittau almost 7 years ago
Published by srittau about 8 years ago
Add assert_less(), assert_less_equal(), assert_greater(), assert_greater_equal(), assert_not_is_instance().
Published by srittau over 10 years ago
First public release of the asserts package. This release still misses some assertions that are in the latest unittest module. Also, assert_equal does not support rich comparison support, yet.