Exemplo n.º 1
0
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"
Exemplo n.º 2
0
	def test_testNameNotEqual(self):
		print('newtest')

		colorDiff.do("143", "123")	
Exemplo n.º 3
0
	def test_testNameNotEqualLonger2(self):
		print('newtest')
		print('++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++')
		

		colorDiff.do("123", "1235")		
Exemplo n.º 4
0
	def test_testName(self):
		print('newtest')
		colorDiff.do("123", "123")