def test_inherit_overwrite():
    """We check things are overwritten at import time"""
    with pytest.raises(NotImplementedError):

        class S(Spawner):
            pass
We check things are overwritten at import time
jupyterhub/tests/test_spawner.py