Lines Matching refs:clear_output
12 def _mocked_ipython(self, get_ipython, clear_output): argument
14 original_clear_output = widget_output.clear_output
17 widget_output.clear_output = clear_output
21 widget_output.clear_output = original_clear_output
49 def clear_output(*args, **kwargs): function
51 clear_output.calls = calls
53 return clear_output
58 clear_output = self._mock_clear_output()
60 with self._mocked_ipython(get_ipython, clear_output):
70 clear_output = self._mock_clear_output()
72 with self._mocked_ipython(get_ipython, clear_output):
74 widget.clear_output(wait=True)
76 assert len(clear_output.calls) == 1
77 assert clear_output.calls[0] == ((), {'wait': True})
82 clear_output = self._mock_clear_output()
87 with self._mocked_ipython(get_ipython, clear_output):
114 clear_output = self._mock_clear_output()
116 with self._mocked_ipython(get_ipython, clear_output):
119 @widget.capture(clear_output=True, wait=True)
127 assert len(clear_output.calls) == 2
128 assert clear_output.calls[0] == clear_output.calls[1] == \
134 clear_output = self._mock_clear_output()
136 with self._mocked_ipython(get_ipython, clear_output):
139 @widget.capture(clear_output=False)
147 assert len(clear_output.calls) == 0