##// END OF EJS Templates
Update URL for Lawrence Hall of Science webcam image...
Update URL for Lawrence Hall of Science webcam image Closes gh-4752 I also reran the notebook in order, so all the prompt numbers have changed. Also, update example to use IFrame class, and fix embedded video on Py 3

File last commit:

r13518:441f40ae
r14748:66dcb00e
Show More
test_clipboard.py
22 lines | 716 B | text/x-python | PythonLexer
import nose.tools as nt
from IPython.core.error import TryNext
from IPython.lib.clipboard import ClipboardEmpty
from IPython.testing.decorators import skip_if_no_x11
from IPython.utils.py3compat import unicode_type
@skip_if_no_x11
def test_clipboard_get():
# Smoketest for clipboard access - we can't easily guarantee that the
# clipboard is accessible and has something on it, but this tries to
# exercise the relevant code anyway.
try:
a = get_ipython().hooks.clipboard_get()
except ClipboardEmpty:
# Nothing in clipboard to get
pass
except TryNext:
# No clipboard access API available
pass
else:
nt.assert_is_instance(a, unicode_type)