Changelog¶
v1.1.1 (2017-05-09)¶
- Fix compatibility with pydash v4.
v1.1.0 (2015-07-23)¶
- Add
ensure
as 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
Between
andLength
only accept keyword argumentsmin
andmax
. (breaking change)
v0.6.0 (2015-05-14)¶
- Make
expect
into a class and support method chaining of assertions. Original usage is still supported. - Make
expect
wrap external predicate functions withPredicate
for evaluation. (breaking change) - Make
Predicate
catchAssertionError
thrown by comparable and returnFalse
. (breaking change) - Make
Predicate
treat a comparable that returnsNone
as passing. (breaking change) - Rename
InstanceOf
andNotInstanceOf
toType
andNotType
. (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
NaN
toNotNumber
. (breaking change)
v0.4.0 (2015-05-12)¶
- Make
Between
accept keyword arguments formin
andmax
. - Make
Length
function likeBetween
and 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
Match
accept keyword argumentflags
for 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
Not
compatible with bare predicate functions by return the evaluation of the comparable.
v0.1.1 (2015-05-08)¶
- Make
expect
include an assertion message on failure. Without it, a crypticNameError
is 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
Except
toexcept
. (breaking change) - Make
except
not call value if it’s callable. (breaking change) - Make
except
returnTrue
if all assertions pass.
v0.0.1 (2015-05-07)¶
- First release.