mirror of
http://aero2k.de/t/repos/urlbot-native.git
synced 2017-09-06 15:25:38 +02:00
port urlbot: remove mcabber specific input stuff
This commit is contained in:
17
test_urlbot.py
Normal file
17
test_urlbot.py
Normal file
@@ -0,0 +1,17 @@
|
||||
"""
|
||||
To be executed with nose
|
||||
"""
|
||||
import unittest
|
||||
from urlbot import fetch_page
|
||||
|
||||
|
||||
class TestEventlooper(unittest.TestCase):
|
||||
|
||||
def test_broken_url(self):
|
||||
"""
|
||||
Test that broken socket calls are not breaking
|
||||
"""
|
||||
broken_url = 'http://foo'
|
||||
result = fetch_page(url=broken_url)
|
||||
self.assertEqual(result, (None, None))
|
||||
|
||||
Reference in New Issue
Block a user