Commit 5189bb3b authored by HongzheWang's avatar HongzheWang

test/recipe:edit test of urlparse

parent 3bf87114
...@@ -12,10 +12,11 @@ class UrlparseTest(unittest.TestCase): ...@@ -12,10 +12,11 @@ class UrlparseTest(unittest.TestCase):
def test_options(self): def test_options(self):
buildout = self.buildout buildout = self.buildout
self.assertTrue(buildout['urlinfo']) self.assertTrue(buildout['urlinfo'])
self.assertTrue(buildout['urlinfo']['path']) self.assertEqual(buildout['urlinfo']['path'], 'search')
self.assertTrue(buildout['urlinfo']['scheme']) self.assertEqual(buildout['urlinfo']['scheme'], 'http')
self.assertTrue(buildout['urlinfo']['host']) self.assertEqual(buildout['urlinfo']['host'], 'www.google.com')
self.assertTrue(buildout['urlinfo']['query']) self.assertEqual(buildout['urlinfo']['query'], 'hl=en&q=urlparse&btnG=Google+Search')
def test_install(self): def test_install(self):
self.assertEqual(self.recipe.install(), []) self.assertEqual(self.recipe.install(), [])
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment