def _close_to_dt(d1, d2, epsilon=5):
 delta = (d2 - d1)
 mus = abs((((delta.days * MUSECONDS_PER_DAY) + (delta.seconds * 1000000.0)) + delta.microseconds))
 assert (mus < epsilon)

def _close_to_dt ( d1 , d2 , epsilon = 5 ) : delta = ( d2 - d1 ) mus = abs ( ( ( ( delta . days * MUSECONDS_PER_DAY ) + ( delta . seconds * 1000000.0 ) ) + delta . microseconds ) ) assert ( mus < epsilon )
assert that datetimes *d1* and *d2* are within *epsilon* microseconds .