def visitLinks(self):
        url = self.homeURL + "/default/index"
        to_visit = [url]
        start = time()
        self.total_visited = 0
        if not self.reportOnly:
            for depth in range(self.maxDepth):
                if len(to_visit) == 0:
                    break
                self.linkDepth.append(len(to_visit))
                self.totalLinks += len(to_visit)
                visit_start = time()
                url_visited = "%d urls" % len(to_visit)
                self.total_visited += len(to_visit)
                to_visit = self.visit(to_visit, depth)
                msg = "%.2d Visited %s in %.3f seconds, %d more urls found" % (depth, url_visited, time()-visit_start, len(to_visit))
                self.reporter(msg)
                if self.config.verbose >= 2:
                    if self.config.verbose >= 3:
                        print >> self.stdout
                    if self.stdout.isatty(): # terminal should support colour
                        msg = "%.2d Visited \033[1;32m%s\033[0m in %.3f seconds, \033[1;31m%d\033[0m more urls found" % (depth, url_visited, time()-visit_start, len(to_visit))
                    print >> self.stdout, msg
            if len(to_visit) > 0:
                self.linkDepth.append(len(to_visit))
            finish = time()
            self.reporter("Finished took %.3f seconds" % (finish - start))
dataset/ETHPy150Open sahana/eden/modules/tests/smoke/broken_links.py/BrokenLinkTest.visitLinks/original