def test_putURI_success(self): """ test putURI function success """ url_table.putURI('www.baidu.com') self.assertTrue(url_table.queryURI('www.baidu.com'))
def test_putURI_failure(self): """ test putURI function failure """ self.assertFalse(url_table.queryURI('www.google.com'))
def testUrlTable(self): """ test url_table module """ url_table.putURI('www.baidu.com') self.assertTrue(url_table.queryURI('www.baidu.com'))