'Check whether the verification was active at a particular datetime.
Arguments:
deadline (datetime): The date at which the verification was active
(created before and expiration datetime is after today).
Returns:
bool'

def active_at_datetime(self, deadline):

    return ((self.created_at < deadline) and (self.expiration_datetime > datetime.now(pytz.UTC)))
