def test_class_property():
    """
    Unit tests
    """

    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
dataset/ETHPy150Open heiskr/sagefy/server/test/test_modules_classproperty.py/test_class_property/original