Changelog¶
v1.1.1 (2017-05-09)¶
- Fix compatibility with pydash v4.
v1.1.0 (2015-07-23)¶
- Add
ensureas alias ofexpect. - Add
to_be_*andis_*aliases for all assertions.
v1.0.0 (2015-05-15)¶
- Add
NotLength. - Make assertions accept an optional argument,
msg, that overrides the default assert message on a per call basis. - Make
BetweenandLengthonly accept keyword argumentsminandmax. (breaking change)
v0.6.0 (2015-05-14)¶
- Make
expectinto a class and support method chaining of assertions. Original usage is still supported. - Make
expectwrap external predicate functions withPredicatefor evaluation. (breaking change) - Make
PredicatecatchAssertionErrorthrown by comparable and returnFalse. (breaking change) - Make
Predicatetreat a comparable that returnsNoneas passing. (breaking change) - Rename
InstanceOfandNotInstanceOftoTypeandNotType. (breaking change)
v0.5.0 (2015-05-12)¶
- Add
NotEqual. - Add
NotMatch. - Add
NotBetween. - Add
IsNot. - Add
IsNotTrue. - Add
IsNotFalse. - Add
IsNotNone. - Add
NotAll. - Add
NotAny. - Add
NotIn. - Add
NotContains. - Add
NotContainsOnly. - Add
NotSubset. - Add
NotSuperset. - Add
NotUnique. - Add
NotInstanceOf. - Add
NotBoolean. - Add
NotString. - Add
NotDict. - Add
NotList. - Add
NotTuple. - Add
NotDate. - Add
NotDateString. - Add
NotInt. - Add
NotFloat. - Rename
NaNtoNotNumber. (breaking change)
v0.4.0 (2015-05-12)¶
- Make
Betweenaccept keyword arguments forminandmax. - Make
Lengthfunction likeBetweenand allow comparison over range of lengths. If a single comparable value is passed in, then comparison uses the value as a max length. Previously, a single comparable value performed an equality check for length. (breaking change) - Make
Matchaccept keyword argumentflagsfor use with string based regular expression.
v0.3.0 (2015-05-11)¶
- Add
Match. - Add
Subset. - Add
Superset. - Add
Unique. - Add
Date. - Add
DateString. - Add
Positive. - Add
Negative. - Add
Even. - Add
Odd. - Add
Monotone. - Add
Increasing. - Add
StrictlyIncreasing. - Add
Decreasing. - Add
StrictlyDecreasing.
v0.2.0 (2015-05-11)¶
- Add
All. - Add
Any. - Add
Between. - Add
Contains. - Add
ContainsOnly. - Add
Length. - Make
Notcompatible with bare predicate functions by return the evaluation of the comparable.
v0.1.1 (2015-05-08)¶
- Make
expectinclude an assertion message on failure. Without it, a crypticNameErroris thrown when a plain predicate function fails due to a generator being used in theall()call.
v0.1.0 (2015-05-08)¶
- Add
Boolean. - Add
Dict. - Add
Float. - Add
Int. - Add
IsTrue. - Add
IsFalse. - Add
List. - Add
NaN. - Add
Number. - Add
Predicate. - Add
String. - Add
Tuple. - Rename
Excepttoexcept. (breaking change) - Make
exceptnot call value if it’s callable. (breaking change) - Make
exceptreturnTrueif all assertions pass.
v0.0.1 (2015-05-07)¶
- First release.