def test_get_auth_handler_none(self): auth_handler = SyndicationModularInput.get_auth_handler( "http://127.0.0.1:8888/rss_example.xml", username="******", password="******") self.assertEquals(auth_handler, None)
def test_get_auth_handler(self): auth_handler = SyndicationModularInput.get_auth_handler( "http://127.0.0.1:8888/auth/rss_example.xml", username="******", password="******") self.assertIsInstance(auth_handler, urllib2.HTTPBasicAuthHandler)