def test_class_property():

    def _(o):
        return True

    c = classproperty(_)
    assert c.fn is _

    try:
        c.fn = True
        assert False
    except:
        assert True

    try:
        del c.fn
        assert False
    except:
        assert True
Unit tests
dataset/ETHPy150Open heiskr/sagefy/server/test/test_modules_classproperty.py/test_class_property