Format: text/x-python
⬇ Download File (170 B)
   1  from IPython.utils import decorators
   2  
   3  def test_flag_calls():
   4      @decorators.flag_calls
   5      def f():
   6          pass
   7      
   8      assert not f.called
   9      f()
  10      assert f.called