1
0
mirror of http://aero2k.de/t/repos/urlbot-native.git synced 2017-09-06 15:25:38 +02:00

Merge merge urlbot-mcabber to subdir

This commit is contained in:
urlbot
2014-12-02 13:16:10 +01:00
8 changed files with 1166 additions and 0 deletions

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))