示例#1
0
 def test_putURI_success(self):
     """ test putURI function success """
     url_table.putURI('www.baidu.com')
     self.assertTrue(url_table.queryURI('www.baidu.com'))
示例#2
0
 def test_putURI_failure(self):
     """ test putURI function failure """
     self.assertFalse(url_table.queryURI('www.google.com'))
示例#3
0
 def testUrlTable(self):
     """ test url_table module
     """
     url_table.putURI('www.baidu.com')
     self.assertTrue(url_table.queryURI('www.baidu.com'))