Files
urlbot-native/test_urlbot.py
2015-11-20 21:07:48 +01:00

17 lines
320 B
Python

"""
To be executed with nose
"""
import unittest
from common 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))