class HTMLAnalyzerTestCase(unittest.TestCase): def setUp(self): self.analyzer = HTMLAnalyzer() self.analyzer.setUrl('http://www.example.com') def loadFile(self, filename): f = open(filename, 'r') self.html = f.read() self.analyzer.loadHtml(self.html)
def setUp(self): self.analyzer = HTMLAnalyzer() self.analyzer.setUrl('http://www.example.com')