Your IP : 216.73.216.215


Current Path : /proc/2/root/opt/imh-python/lib/python3.9/site-packages/IPython/utils/tests/
Upload File :
Current File : //proc/2/root/opt/imh-python/lib/python3.9/site-packages/IPython/utils/tests/test_decorators.py

from IPython.utils import decorators

def test_flag_calls():
    @decorators.flag_calls
    def f():
        pass
    
    assert not f.called
    f()
    assert f.called