def test_is_near_now():
    '\n    Test is_near_now for now\n    '
    now = datetime.datetime.now(tz=pytz.UTC)
    assert (is_near_now(now) is True)
    later = (now + datetime.timedelta(0, 6))
    assert (is_near_now(later) is False)
    earlier = (now - datetime.timedelta(0, 6))
    assert (is_near_now(earlier) is False)
Test is_near_now for now
def test_is_near_now():
    '\n    \n    '
    now = datetime.datetime.now(tz=pytz.UTC)
    assert (is_near_now(now) is True)
    later = (now + datetime.timedelta(0, 6))
    assert (is_near_now(later) is False)
    earlier = (now - datetime.timedelta(0, 6))
    assert (is_near_now(earlier) is False)