I am having below code
def test_8_match(self):
logging.info("--------------------------------------------------------------------------------------")
logging.info("Testcase 1: start")
start = datetime.datetime.now(utc)
print start
self.assertEqual(Val1, Val2)
I am trying to override assertEqual function just to add some extra stuff
def assertEqual(self, first, second, msg=None):
if first == second :
logging.info("Both value are equal", first , second)
return True
else :
logging.info("Both value are not equal", first, second)
return False
It is not working. It is still calling original proc
Another Query: In this unittest framework, print statements are not coming. is there any way I can use print statements in this code ?