I guess you could write just `hash(interval(1, 1))`, with a comment that you are only testing that it doesn't raise.