@@ -30,7 +30,8 @@ def test_escape_markdown(self):
3030 assert expected_str == helpers .escape_markdown (test_str )
3131
3232 def test_extract_urls_from_text (self ):
33- urls = "http://google.com and http://github.com/ and python-telegram-bot.readthedocs.io/en/latest/"
33+ urls = "http://google.com and http://github.com/ and " \
34+ "python-telegram-bot.readthedocs.io/en/latest/"
3435 result = helpers ._extract_urls_from_text (urls )
3536 assert len (result ) == 2
3637 assert result [0 ] == 'http://google.com'
@@ -40,12 +41,12 @@ def test_extract_urls_entities(self):
4041 test_entities = [{
4142 'length' : 6 , 'offset' : 0 , 'type' : 'text_link' ,
4243 'url' : 'http://github.com/'
43- },
44- { 'length' : 17 , 'offset' : 23 , 'type' : 'url' },
45- {
46- 'length' : 14 , 'offset' : 43 , 'type' : 'text_link' ,
47- 'url' : 'http://google.com'
48- }]
44+ }, {
45+ 'length' : 17 , 'offset' : 23 , 'type' : 'url'
46+ }, {
47+ 'length' : 14 , 'offset' : 43 , 'type' : 'text_link' ,
48+ 'url' : 'http://google.com'
49+ }]
4950 test_text = 'Github can be found at http://github.com. Google is here.'
5051 test_message = Message (message_id = 1 ,
5152 from_user = None ,
0 commit comments