you forgot to import Assert. It fails.
perhaps, you could raise an exception without Assert at all?