def stringDiffByLines(str1, str2): # color.warn('actual') # beatyPrint(str1) # color.warn('expected') # beatyPrint(str2) if isinstance(str1, str): color.red('actual') color.green(str1) color.red('expected') color.warn(str2) colorDiff.do(str1, str2) assert str1.strip() == str2.strip(), "not equal" else: color.red('actual') print(str1) color.red('expected') print(str2) assert str1 == str2, "not equal"
def test_testNameNotEqual(self): print('newtest') colorDiff.do("143", "123")
def test_testNameNotEqualLonger2(self): print('newtest') print('++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++') colorDiff.do("123", "1235")
def test_testName(self): print('newtest') colorDiff.do("123", "123")