
    Xh
8                     h   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	        Z ede      d
        Z	 ede      d        Z
 ede      d        ZdZ ede      d        ZdZ ede      d        ZdZ ede      d        ZdZ ede      d        ZdZ ede      d        Zy)    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)new_callablec           
         K   t         | _         |dddd       d {   }|j                  dk(  sJ t        j                  |j                        }|d   dddd	d
dgdddgdidgk(  sJ y 7 OwNlabapinewsGETmethod     0DCxBGThanks 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data9https://jupyterlab.github.io/assets/posts/2022/11/02/demoidtags	createdAtmessage
modifiedAttypelinkoptions)FAKE_ATOM_FEEDbodycodejsonloadsmock_clientlabserverappjp_fetchresponsepayloads        W/var/www/html/myenv/lib/python3.12/site-packages/jupyterlab/tests/test_announcements.pytest_NewsHandler_get_successr-      s     %KeUF5AAH==Cjj'G6?(a) P
 U#H	
   	 B   A/A-AA/c                    K    |dddd       d {   }|j                   dk(  sJ t        j                  |j                        }|d   g k(  sJ y 7 ?w)Nr	   r
   r   r   r   r   r#   r$   r%   r"   r&   s        r,   test_NewsHandler_get_failurer1   -   sU     eUF5AAH==Cjj'G6?b   	 Bs   AAA Ac                 n  K   t         | _         |dddd       d {   }d}|j                  dk(  sJ t        j                  |j                        }|d   d	   |k(  sJ |d   d
   ddgk(  sJ |d   d   dt        j                  |j                               j                         dgdik(  sJ y 7 w)Nr	   r
   updater   r   z6A newer version (1000.0.0) of JupyterLab is available.r   notificationr   r   u   Read more…z?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+   s         r,   +test_CheckForUpdateHandler_get_pypi_successr:   6   s     0KeUHUCCHFG==Cjj'G>"9-888>"6*I/    >"9-w||GNN$45??AH:V2    Ds   B5B3BB5c                    K    |dddd       d {   }|j                   dk(  sJ t        j                  |j                        }|d   J y 7 <w)Nr	   r
   r3   r   r   r   r4   r0   r&   s        r,   &test_CheckForUpdateHandler_get_failurer<   I   sT     eUHUCCH==Cjj'G>"***	 Ds   AA=A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           
         K   t         | _         |dddd       d {   }|j                  dk(  sJ t        j                  |j                        }|d   dddd	d
dgdddgdidgk(  sJ y 7 Ow)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&   s        r,   $test_NewsHandler_get_missing_summaryr?   U   s     0KeUF5AAH==Cjj'G6?(4) P
 U#H	
   	 B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-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           
         K   t         | _         |dddd       d {   }|j                  dk(  sJ t        j                  |j                        }|d   dddd	d
dgdddgdidgk(  sJ y 7 Owr   ) FAKE_MULTI_ENTRY_LINKS_ATOM_FEEDr"   r#   r$   r%   r&   s        r,   "test_NewsHandler_multi_entry_linksrB   t   s     7KeUF5AAH==Cjj'G6?(a) P
 U#H	
   	 B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-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           
         K   t         | _         |dddd       d {   }|j                  dk(  sJ t        j                  |j                        }|d   dddd	d
dgdddgdidgk(  sJ y 7 Owr   )FAKE_NO_PUBLISHED_ATOM_FEEDr"   r#   r$   r%   r&   s        r,   test_NewsHandler_no_publishedrE      s     2KeUF5AAH==Cjj'G6?(a) P
 U#H	
   	 B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           
         K   t         | _         |dddd       d {   }|j                  dk(  sJ t        j                  |j                        }|d   dddd	d
dgdddgdidgk(  sJ y 7 Owr   )FAKE_LINK_NO_REL_ATOM_FEEDr"   r#   r$   r%   r&   s        r,   test_NewsHandler_link_no_relrH      s     1KeUF5AAH==Cjj'G6?(a) P
 U#H	
   	 B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           
         K   t         | _         |dddd       d {   }|j                  dk(  sJ t        j                  |j                        }|d   dddd	d d
ddgdidgk(  sJ y 7 Mw)Nr	   r
   r   r   r   r   r   r   r   r   r   r   r   )FAKE_NO_LINK_ATOM_FEEDr"   r#   r$   r%   r&   s        r,   test_NewsHandler_no_linksrK      s     -KeUF5AAH==Cjj'G6?(a)U#H	
   	 Bs   A-A+AA-)r6   r$   unittest.mockr    r   r!   r5   r-   r1   r:   r<   r>   r?   rA   rB   rD   rE   rG   rH   rJ   rK        r,   <module>rP      s_      !^ I  +:MN O6 +:MN! O! +:MN O$ +:MN+ O+ u  +:MN O6 $L   +:MN O6 E  +:MN O6 d  +:MN O6 ^  +:MN OrO   