TST: remove deprecated warn method of logging and use warning() instead
BF: Ticket compared to non-Ticket type returns False