Change assert statements to methods (Geron style).