Use ``is`` for checking against singletons: ``assert lognorm is None``