Not sure a one line check needs to be tested like this - it's using Python's built in date comparison right?