1. Jonas Granquist
  2. pyfitnesse

Source

pyfitnesse / test / name_count.py

import sys
sys.path.append('..\\src')
from pyfitnesse.FitNesse import FitNesse

class NameCount:

    def __init__(self):
        self.__fitnesse = FitNesse(fitnesse_jar='..\\..\\..\\..\\bin\\fitnesse.jar', port='44000', fitnesse_root='testdata')

    def set_page_name(self, page_name):
        self.__page_name = page_name

    def child_pages_count(self):
        return self.__fitnesse.child_pages_count(self.__page_name)