Yes, but I meant it literally. Do not write "assert(date!=None)". Write "assert date is not None".