def runExtendedTest(self): step = Step() self.inputList.clear() self.inputList = {self.originalKey: ""} step.run(self.inputList) self.assertEqual(" ", self.inputList[self.doubleKey])
def runExtendedTest(self): step = Step() self.inputList.clear(); self.inputList = {self.originalKey:""} step.run(self.inputList) self.assertEqual(" ", self.inputList[self.doubleKey])
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])