コード例 #1
0
ファイル: DoFixture.py プロジェクト: copyleftdev/pyfit
 def findMethodByActionName(self, cells, numArgs):
     parms = numArgs / 2 + 1
     args = (numArgs + 1) / 2
     name = cells.text()
     i = 1
     while (i < parms):
         name += " " + cells.at(i*2).text()
         i += 1
     target = self.findMethod(ExtendedCamelCase.camel(name), args)
     target.setEverySecond(True)
     return target
コード例 #2
0
 def findMethodByActionName(self, cells, numArgs):
     parms = numArgs / 2 + 1
     args = (numArgs + 1) / 2
     name = cells.text()
     i = 1
     while (i < parms):
         name += " " + cells.at(i * 2).text()
         i += 1
     target = self.findMethod(ExtendedCamelCase.camel(name), args)
     target.setEverySecond(True)
     return target
コード例 #3
0
ファイル: SetUpFixture.py プロジェクト: copyleftdev/pyfit
    def bind(self, headerRow):
        cells = headerRow
        self.argCount = cells.size()
        self.argNames = ""
        while cells is not None: 
            self.argNames += " " + cells.text()
            cells = cells.more

        methodName = ExtendedCamelCase.camel(self.argNames)
        try:
            self.target = self.findMethod(methodName, self.argCount)
            self.boundOK = True
        except Exception, e:
            self.exception(headerRow, e)
コード例 #4
0
    def bind(self, headerRow):
        cells = headerRow
        self.argCount = cells.size()
        self.argNames = ""
        while cells is not None:
            self.argNames += " " + cells.text()
            cells = cells.more

        methodName = ExtendedCamelCase.camel(self.argNames)
        try:
            self.target = self.findMethod(methodName, self.argCount)
            self.boundOK = True
        except Exception, e:
            self.exception(headerRow, e)
コード例 #5
0
ファイル: TestCamelCase.py プロジェクト: copyleftdev/pyfit
 def identifierName(self, name):
     return ExtendedCamelCase.camel(name)
コード例 #6
0
 def identifierName(self, name):
     return ExtendedCamelCase.camel(name)
コード例 #7
0
 def findMethodByActionName(self, cells, args):
     actionName = cells.text()
     return self.findMethod(ExtendedCamelCase.camel(actionName), args)
コード例 #8
0
 def check(self, input, out):
     self.assertEquals(out, ExtendedCamelCase.camel(input))
コード例 #9
0
 def check(self, input, out):
     self.assertEquals(out, ExtendedCamelCase.camel(input))
コード例 #10
0
ファイル: SequenceFixture.py プロジェクト: copyleftdev/pyfit
 def findMethodByActionName(self, cells, args):
     actionName = cells.text()
     return self.findMethod(ExtendedCamelCase.camel(actionName), args)