def test_ok(self, val):
     """Pass."""
     then = tools.dt_now(delta=tools.timedelta(minutes=5))
     assert tools.dt_within_min(obj=then, n=val) is True
 def test_ok(self, val):
     then = dt_now(delta=timedelta(minutes=5))
     assert dt_within_min(obj=then, n=val) is True
Beispiel #3
0
 def test_bad(self, val):
     """Pass."""
     then = dt_now(delta=timedelta(minutes=5))
     assert dt_within_min(obj=then, n=val) is False