def testFindProduct(self): sites = aituans.getSites() ps = rule.ParserBase(sites[0]) assert ps.findProductFromFile()
def testGetFileContent(self): sites = aituans.getSites() ps = rule.ParserBase(sites[0]) files = ps.getFiles() pd = ps.getPageContentFromFile(files[0]) assert pd
def testGetAttrs(self): sites = aituans.getSites() ps = rule.ParserBase(sites[0]) assert ps.getAttrs()
def testgetFiles(self): sites = aituans.getSites() ps = rule.ParserBase(sites[0]) files = ps.getFiles() assert files