PCQRSCANER/venv/Lib/site-packages/google/tests/test_utils.py
2019-12-22 21:51:47 +01:00

25 lines
655 B
Python

#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests helper methods."""
from __future__ import print_function
from __future__ import with_statement
import unittest
import nose
from google.modules.utils import _get_search_url
class UtilsTestCase(unittest.TestCase):
"""Tests for helper methods."""
@unittest.skip('Don\t know why but it not work. Skipping for now')
def test_get_search_url(self):
url = _get_search_url("apple", 0, 10, "en", "jp")
exp_url = "http://www.google.co.jp/search?q=apple&start=0&num=10&hl=en"
self.assertEqual(url, exp_url)
if __name__ == '__main__':
nose.run(defaultTest=__name__)