cheat sheets.

$ cheat assert_in_delta
# 'cheat assertions' for the rest

assert_in_delta(expected_float, actual_float, delta, message="")

Passes if expected_float and actual_float are equal within delta tolerance.

Example:

  assert_in_delta 0.05, (50000.0 / 10**6), 0.00001
Version 1, updated 419 days ago.
. o 0 ( edit | history )
( add new | see all )