a
    ø£Be8  ã                   @   sü   d dl Z d dlZd dlmZ ddlmZ dZdZeded�d	d
„ ƒZeded�dd„ ƒZ	eded�dd„ ƒZ
eded�dd„ ƒZdZeded�dd„ ƒZdZeded�dd„ ƒZdZeded�dd„ ƒZdZeded�dd„ ƒZdZeded�dd„ ƒZdS ) é    N)Úpatché   )Úfake_client_factorysõ  <?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.9.2">Jekyll</generator><link href="https://jupyterlab.github.io/assets/feed.xml" rel="self" type="application/atom+xml" /><link href="https://jupyterlab.github.io/assets/" rel="alternate" type="text/html" /><updated>2022-11-02T15:14:50+00:00</updated><id>https://jupyterlab.github.io/assets/feed.xml</id><title type="html">JupyterLab News</title><subtitle>Subscribe to get news about JupyterLab.</subtitle><entry><title type="html">Thanks for using JupyterLab</title><link href="https://jupyterlab.github.io/assets/posts/2022/11/02/demo.html" rel="alternate" type="text/html" title="Thanks for using JupyterLab" /><published>2022-11-02T14:00:00+00:00</published><updated>2022-11-02T14:00:00+00:00</updated><id>https://jupyterlab.github.io/assets/posts/2022/11/02/demo</id><content type="html" xml:base="https://jupyterlab.github.io/assets/posts/2022/11/02/demo.html">&lt;h1 id=&quot;welcome&quot;&gt;Welcome&lt;/h1&gt;

&lt;p&gt;Thanks a lot for your interest in JupyterLab.&lt;/p&gt;</content><author><name></name></author><category term="posts" /><summary type="html">Big thanks to you, beloved JupyterLab user.</summary></entry></feed>s%   { "info": { "version": "1000.0.0" } }z"tornado.httpclient.AsyncHTTPClient)Znew_callablec              
   Ã   sj   t | _|ddddd�I d H }|jdks*J ‚t |j¡}|d dddd	d
dgdddgdœidœgksfJ ‚d S ©NÚlabÚapiÚnewsÚGET©ÚmethodéÈ   ç  0DŠCxBúGThanks for using JupyterLab
Big thanks to you, beloved JupyterLab user.ÚinfoúOpen full postú>https://jupyterlab.github.io/assets/posts/2022/11/02/demo.htmlÚdataú9https://jupyterlab.github.io/assets/posts/2022/11/02/demo©ÚidÚtags©Z	createdAtÚmessageZ
modifiedAtÚtypeÚlinkÚoptions)ÚFAKE_ATOM_FEEDÚbodyÚcodeÚjsonÚloads©Úmock_clientÚlabserverappÚjp_fetchÚresponseÚpayload© r'   úf/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/jupyterlab/tests/test_announcements.pyÚtest_NewsHandler_get_success   s&    þþÿ÷ÿr)   c                 Ã   sD   |ddddd�I d H }|j dks$J ‚t |j¡}|d g ks@J ‚d S )Nr   r   r   r	   r
   r   ©r   r   r    r   r!   r'   r'   r(   Útest_NewsHandler_get_failure-   s    r+   c                 Ã   s˜   t | _|ddddd�I d H }d}|jdks.J ‚t |j¡}|d d	 |ksNJ ‚|d d
 ddgksfJ ‚|d d dt | ¡ ¡ ¡ dgdœiks”J ‚d S )Nr   r   Úupdater	   r
   z6A newer version (1000.0.0) of JupyterLab is available.r   Únotificationr   r   zOpen changelogz?https://github.com/jupyterlab/jupyterlab/releases/tag/v1000.0.0r   r   r   )	ÚFAKE_JUPYTERLAB_PYPI_JSONr   r   r   r    ÚhashlibÚsha1ÚencodeÚ	hexdigest)r"   r#   r$   r%   r   r&   r'   r'   r(   Ú+test_CheckForUpdateHandler_get_pypi_success6   s    
þ

ÿr3   c                 Ã   sD   |ddddd�I d H }|j dks$J ‚t |j¡}|d d u s@J ‚d S )Nr   r   r,   r	   r
   r   r-   r*   r!   r'   r'   r(   Ú&test_CheckForUpdateHandler_get_failureI   s    r4   s  <?xml version='1.0' encoding='UTF-8'?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><id>https://jupyterlab.github.io/assets/feed.xml</id><title>JupyterLab News</title><updated>2023-05-02T19:01:33.669598+00:00</updated><author><name>John Doe</name><email>john@example.de</email></author><link href="https://jupyterlab.github.io/assets/feed.xml" rel="self" type="application/atom+xml"/><link href="https://jupyterlab.github.io/assets/" rel="alternate" type="text/html"/><generator uri="https://lkiesow.github.io/python-feedgen" version="0.9.0">python-feedgen</generator><logo>http://ex.com/logo.jpg</logo><subtitle>Subscribe to get news about JupyterLab.</subtitle><entry><id>https://jupyterlab.github.io/assets/posts/2022/11/02/demo</id><title>Thanks for using JupyterLab</title><updated>2022-11-02T14:00:00+00:00</updated><link href="https://jupyterlab.github.io/assets/posts/2022/11/02/demo.html" rel="alternate" type="text/html" title="Thanks for using JupyterLab"/><published>2022-11-02T14:00:00+00:00</published></entry></feed>c              
   Ã   sj   t | _|ddddd�I d H }|jdks*J ‚t |j¡}|d dddd	d
dgdddgdœidœgksfJ ‚d S )Nr   r   r   r	   r
   r   r   zThanks for using JupyterLabr   r   r   r   r   r   r   )ÚFAKE_NO_SUMMARY_ATOM_FEEDr   r   r   r    r!   r'   r'   r(   Ú$test_NewsHandler_get_missing_summaryU   s&    þþÿ÷ÿr6   sá  <?xml version='1.0' encoding='UTF-8'?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><id>https://jupyterlab.github.io/assets/feed.xml</id><title>JupyterLab News</title><updated>2023-05-02T19:59:44.332080+00:00</updated><author><name>John Doe</name><email>john@example.de</email></author><link href="https://jupyterlab.github.io/assets/feed.xml" rel="self" type="application/atom+xml"/><link href="https://jupyterlab.github.io/assets/" rel="alternate" type="text/html"/><generator uri="https://lkiesow.github.io/python-feedgen" version="0.9.0">python-feedgen</generator><logo>http://ex.com/logo.jpg</logo><subtitle>Subscribe to get news about JupyterLab.</subtitle><entry><id>https://jupyterlab.github.io/assets/posts/2022/11/02/demo</id><title>Thanks for using JupyterLab</title><updated>2022-11-02T14:00:00+00:00</updated><link href="https://jupyterlab.github.io/assets/posts/2022/11/02/demo_self.html" rel="self" type="text/html" title="Thanks for using JupyterLab"/><link href="https://jupyterlab.github.io/assets/posts/2022/11/02/demo.html" rel="alternate" type="text/html" title="Thanks for using JupyterLab"/><summary>Big thanks to you, beloved JupyterLab user.</summary><published>2022-11-02T14:00:00+00:00</published></entry></feed>c              
   Ã   sj   t | _|ddddd�I d H }|jdks*J ‚t |j¡}|d dddd	d
dgdddgdœidœgksfJ ‚d S r   )Ú FAKE_MULTI_ENTRY_LINKS_ATOM_FEEDr   r   r   r    r!   r'   r'   r(   Ú"test_NewsHandler_multi_entry_linkst   s&    þþÿ÷ÿr8   s  <?xml version='1.0' encoding='UTF-8'?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><id>https://jupyterlab.github.io/assets/feed.xml</id><title>JupyterLab News</title><updated>2023-05-02T19:32:08.566055+00:00</updated><author><name>John Doe</name><email>john@example.de</email></author><link href="https://jupyterlab.github.io/assets/feed.xml" rel="self" type="application/atom+xml"/><link href="https://jupyterlab.github.io/assets/" rel="alternate" type="text/html"/><generator uri="https://lkiesow.github.io/python-feedgen" version="0.9.0">python-feedgen</generator><logo>http://ex.com/logo.jpg</logo><subtitle>Subscribe to get news about JupyterLab.</subtitle><entry><id>https://jupyterlab.github.io/assets/posts/2022/11/02/demo</id><title>Thanks for using JupyterLab</title><updated>2022-11-02T14:00:00+00:00</updated><link href="https://jupyterlab.github.io/assets/posts/2022/11/02/demo.html" rel="alternate" type="text/html" title="Thanks for using JupyterLab"/><summary>Big thanks to you, beloved JupyterLab user.</summary></entry></feed>c              
   Ã   sj   t | _|ddddd�I d H }|jdks*J ‚t |j¡}|d dddd	d
dgdddgdœidœgksfJ ‚d S r   )ÚFAKE_NO_PUBLISHED_ATOM_FEEDr   r   r   r    r!   r'   r'   r(   Útest_NewsHandler_no_published“   s&    þþÿ÷ÿr:   s?  <?xml version='1.0' encoding='UTF-8'?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><id>https://jupyterlab.github.io/assets/feed.xml</id><title>JupyterLab News</title><updated>2023-05-03T17:06:43.950978+00:00</updated><author><name>John Doe</name><email>john@example.de</email></author><link href="https://jupyterlab.github.io/assets/feed.xml" rel="self" type="application/atom+xml"/><link href="https://jupyterlab.github.io/assets/" rel="alternate" type="text/html"/><generator uri="https://lkiesow.github.io/python-feedgen" version="0.9.0">python-feedgen</generator><logo>http://ex.com/logo.jpg</logo><subtitle>Subscribe to get news about JupyterLab.</subtitle><entry><id>https://jupyterlab.github.io/assets/posts/2022/11/02/demo</id><title>Thanks for using JupyterLab</title><updated>2022-11-02T14:00:00+00:00</updated><link href="https://jupyterlab.github.io/assets/posts/2022/11/02/demo.html" type="text/html" title="Thanks for using JupyterLab"/><summary>Big thanks to you, beloved JupyterLab user.</summary><published>2022-11-02T14:00:00+00:00</published></entry></feed>c              
   Ã   sj   t | _|ddddd�I d H }|jdks*J ‚t |j¡}|d dddd	d
dgdddgdœidœgksfJ ‚d S r   )ÚFAKE_LINK_NO_REL_ATOM_FEEDr   r   r   r    r!   r'   r'   r(   Útest_NewsHandler_link_no_rel²   s&    þþÿ÷ÿr<   s½  <?xml version='1.0' encoding='UTF-8'?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><id>https://jupyterlab.github.io/assets/feed.xml</id><title>JupyterLab News</title><updated>2023-05-03T17:06:43.950978+00:00</updated><author><name>John Doe</name><email>john@example.de</email></author><link href="https://jupyterlab.github.io/assets/feed.xml" rel="self" type="application/atom+xml"/><link href="https://jupyterlab.github.io/assets/" rel="alternate" type="text/html"/><generator uri="https://lkiesow.github.io/python-feedgen" version="0.9.0">python-feedgen</generator><logo>http://ex.com/logo.jpg</logo><subtitle>Subscribe to get news about JupyterLab.</subtitle><entry><id>https://jupyterlab.github.io/assets/posts/2022/11/02/demo</id><title>Thanks for using JupyterLab</title><updated>2022-11-02T14:00:00+00:00</updated><summary>Big thanks to you, beloved JupyterLab user.</summary><published>2022-11-02T14:00:00+00:00</published></entry></feed>c              
   Ã   sf   t | _|ddddd�I d H }|jdks*J ‚t |j¡}|d dddd	d d
ddgdœidœgksbJ ‚d S )Nr   r   r   r	   r
   r   r   r   r   r   r   r   r   )ÚFAKE_NO_LINK_ATOM_FEEDr   r   r   r    r!   r'   r'   r(   Útest_NewsHandler_no_linksÑ   s"    þÿúÿr>   )r/   r   Zunittest.mockr   Ú r   r   r.   r)   r+   r3   r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r'   r'   r'   r(   Ú<module>   s8   
















