port urlbot: remove mcabber specific input stuff

This commit is contained in:
urlbot
2014-12-02 15:04:53 +01:00
parent d3ac21a58e
commit 93dbc5b109
11 changed files with 79 additions and 129 deletions

17
test_urlbot.py Normal file
View 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))