def test_abstract_methods_required(): class Broken(Service): """Missing abstract methods.""" with pytest.raises(TypeError): Broken()