示例#1
0
    def runExtendedTest(self):

        step = Step()
        self.inputList.clear()
        self.inputList = {self.originalKey: ""}
        step.run(self.inputList)
        self.assertEqual(" ", self.inputList[self.doubleKey])
示例#2
0
    def runExtendedTest(self):

        step = Step()
        self.inputList.clear();
        self.inputList = {self.originalKey:""}          
        step.run(self.inputList)
        self.assertEqual(" ", self.inputList[self.doubleKey])
                
   
      
        
示例#3
0
    def runBasicTest(self):
        """
        Test a successful run. 
        1.The original value should not have changed. 
        2.The upper case value should be correct  
        """
        step = Step()
        step.run(self.inputList)
        """check original value is not changed"""
        self.assertEqual(self.originalValue, self.inputList[self.originalKey])
        """check that new value is correct"""
        self.assertEqual(self.originalValue + ' ' + self.originalValue,
                         self.inputList[self.doubleKey])

        self.assertNotEqual(self.originalValue, self.inputList[self.doubleKey])
示例#4
0
    def runBasicTest(self):
        """
        Test a successful run. 
        1.The original value should not have changed. 
        2.The upper case value should be correct  
        """
        step = Step()
        step.run(self.inputList)

        """check original value is not changed"""
        self.assertEqual(self.originalValue, self.inputList[self.originalKey])
        
        """check that new value is correct"""
        self.assertEqual(self.originalValue + ' ' + self.originalValue, 
                         self.inputList[self.doubleKey])
                
        self.assertNotEqual(self.originalValue, self.inputList[self.doubleKey])