Files
urlbot-native/urlbot-mcabber/test_urlbot.py

18 lines
321 B
Python
Raw Normal View History

"""
To be executed with nose
"""
import unittest
2014-09-27 05:34:49 +02:00
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))