def test_not_implemented(self): """Verify `List` cannot be used directly.""" with pytest.raises(NotImplementedError): List() with pytest.raises(NotImplementedError): UnknownList()