| 
				
			 | 
			
			
				@@ -36,10 +36,10 @@ class TestBingNewsEngine(SearxTestCase): 
			 | 
		
	
		
			
			| 
				36
			 | 
			
				36
			 | 
			
			
				         self.assertRaises(AttributeError, bing_news.response, '') 
			 | 
		
	
		
			
			| 
				37
			 | 
			
				37
			 | 
			
			
				         self.assertRaises(AttributeError, bing_news.response, '[]') 
			 | 
		
	
		
			
			| 
				38
			 | 
			
				38
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				39
			 | 
			
				
			 | 
			
			
				-        response = mock.Mock(text='<html></html>') 
			 | 
		
	
		
			
			| 
				
			 | 
			
				39
			 | 
			
			
				+        response = mock.Mock(content='<html></html>') 
			 | 
		
	
		
			
			| 
				40
			 | 
			
				40
			 | 
			
			
				         self.assertEqual(bing_news.response(response), []) 
			 | 
		
	
		
			
			| 
				41
			 | 
			
				41
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				42
			 | 
			
				
			 | 
			
			
				-        response = mock.Mock(text='<html></html>') 
			 | 
		
	
		
			
			| 
				
			 | 
			
				42
			 | 
			
			
				+        response = mock.Mock(content='<html></html>') 
			 | 
		
	
		
			
			| 
				43
			 | 
			
				43
			 | 
			
			
				         self.assertEqual(bing_news.response(response), []) 
			 | 
		
	
		
			
			| 
				44
			 | 
			
				44
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				45
			 | 
			
				45
			 | 
			
			
				         html = """<?xml version="1.0" encoding="utf-8" ?> 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -74,7 +74,7 @@ class TestBingNewsEngine(SearxTestCase): 
			 | 
		
	
		
			
			| 
				74
			 | 
			
				74
			 | 
			
			
				         </item> 
			 | 
		
	
		
			
			| 
				75
			 | 
			
				75
			 | 
			
			
				     </channel> 
			 | 
		
	
		
			
			| 
				76
			 | 
			
				76
			 | 
			
			
				 </rss>"""  # noqa 
			 | 
		
	
		
			
			| 
				77
			 | 
			
				
			 | 
			
			
				-        response = mock.Mock(text=html.encode('utf-8')) 
			 | 
		
	
		
			
			| 
				
			 | 
			
				77
			 | 
			
			
				+        response = mock.Mock(content=html.encode('utf-8')) 
			 | 
		
	
		
			
			| 
				78
			 | 
			
				78
			 | 
			
			
				         results = bing_news.response(response) 
			 | 
		
	
		
			
			| 
				79
			 | 
			
				79
			 | 
			
			
				         self.assertEqual(type(results), list) 
			 | 
		
	
		
			
			| 
				80
			 | 
			
				80
			 | 
			
			
				         self.assertEqual(len(results), 2) 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -113,7 +113,7 @@ class TestBingNewsEngine(SearxTestCase): 
			 | 
		
	
		
			
			| 
				113
			 | 
			
				113
			 | 
			
			
				         </item> 
			 | 
		
	
		
			
			| 
				114
			 | 
			
				114
			 | 
			
			
				     </channel> 
			 | 
		
	
		
			
			| 
				115
			 | 
			
				115
			 | 
			
			
				 </rss>"""  # noqa 
			 | 
		
	
		
			
			| 
				116
			 | 
			
				
			 | 
			
			
				-        response = mock.Mock(text=html.encode('utf-8')) 
			 | 
		
	
		
			
			| 
				
			 | 
			
				116
			 | 
			
			
				+        response = mock.Mock(content=html.encode('utf-8')) 
			 | 
		
	
		
			
			| 
				117
			 | 
			
				117
			 | 
			
			
				         results = bing_news.response(response) 
			 | 
		
	
		
			
			| 
				118
			 | 
			
				118
			 | 
			
			
				         self.assertEqual(type(results), list) 
			 | 
		
	
		
			
			| 
				119
			 | 
			
				119
			 | 
			
			
				         self.assertEqual(len(results), 1) 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -136,11 +136,11 @@ class TestBingNewsEngine(SearxTestCase): 
			 | 
		
	
		
			
			| 
				136
			 | 
			
				136
			 | 
			
			
				     </channel> 
			 | 
		
	
		
			
			| 
				137
			 | 
			
				137
			 | 
			
			
				 </rss>"""  # noqa 
			 | 
		
	
		
			
			| 
				138
			 | 
			
				138
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				139
			 | 
			
				
			 | 
			
			
				-        response = mock.Mock(text=html.encode('utf-8')) 
			 | 
		
	
		
			
			| 
				
			 | 
			
				139
			 | 
			
			
				+        response = mock.Mock(content=html.encode('utf-8')) 
			 | 
		
	
		
			
			| 
				140
			 | 
			
				140
			 | 
			
			
				         results = bing_news.response(response) 
			 | 
		
	
		
			
			| 
				141
			 | 
			
				141
			 | 
			
			
				         self.assertEqual(type(results), list) 
			 | 
		
	
		
			
			| 
				142
			 | 
			
				142
			 | 
			
			
				         self.assertEqual(len(results), 0) 
			 | 
		
	
		
			
			| 
				143
			 | 
			
				143
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				144
			 | 
			
				144
			 | 
			
			
				         html = """<?xml version="1.0" encoding="utf-8" ?>gabarge""" 
			 | 
		
	
		
			
			| 
				145
			 | 
			
				
			 | 
			
			
				-        response = mock.Mock(text=html.encode('utf-8')) 
			 | 
		
	
		
			
			| 
				
			 | 
			
				145
			 | 
			
			
				+        response = mock.Mock(content=html.encode('utf-8')) 
			 | 
		
	
		
			
			| 
				146
			 | 
			
				146
			 | 
			
			
				         self.assertRaises(lxml.etree.XMLSyntaxError, bing_news.response, response) 
			 |