18 lines
326 B
Python
18 lines
326 B
Python
"""
|
|
To be executed with nose
|
|
"""
|
|
import unittest
|
|
from eventlooper 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))
|
|
|