@@ -31,13 +31,20 @@ def test_rewrites_blogspot_url(self, mock_parse):
3131 mock_parse .return_value = {
3232 "entries" : [
3333 {
34- "title" : "Test Title" ,
34+ "title" : "Test Title HTTPS " ,
3535 "summary" : "Summary" ,
36- "published_parsed" : (2026 , 2 , 22 , 12 , 0 , 0 , 0 , 0 , 0 ),
37- "link" : "https://pythoninsider.blogspot.com/2026/02/test.html" ,
36+ "published_parsed" : (2024 , 1 , 15 , 12 , 0 , 0 , 0 , 0 , 0 ),
37+ "link" : "https://pythoninsider.blogspot.com/2024/01/test.html" ,
38+ },
39+ {
40+ "title" : "Test Title HTTP" ,
41+ "summary" : "Summary" ,
42+ "published_parsed" : (2024 , 1 , 15 , 12 , 0 , 0 , 0 , 0 , 0 ),
43+ "link" : "http://pythoninsider.blogspot.com/2024/01/test2.html" ,
3844 }
3945 ]
4046 }
4147 entries = get_all_entries ("http://fake.url" )
42- self .assertEqual (len (entries ), 1 )
43- self .assertEqual (entries [0 ]["url" ], "https://blog.python.org/2026/02/test.html" )
48+ self .assertEqual (len (entries ), 2 )
49+ self .assertEqual (entries [0 ]["url" ], "https://blog.python.org/2024/01/test.html" )
50+ self .assertEqual (entries [1 ]["url" ], "http://blog.python.org/2024/01/test2.html" )
0 commit comments