backports.datetime_fromisoformat
backports.datetime_fromisoformat copied to clipboard
Add Hypothesis fuzz testing
There is a nice invariant we can use Hypothesis to test.
datetime.fromisoformat is the inverse of datetime.isoformat
In other words, for every datetime object, dt, dt == datetime.fromisoformat(dt.isoformat())
Hypothesis can be used to test this invariant, using its "datetimes strategy".