for line in result['errors']:
print line
This will output :
[ [ 'some text here.....', '23', '3'],
[ 'some text here.....', '244', '4'],
[ 'some text here.....', '344', '5'] ]
Now I am using assertTrue and want to output the list:
self.assertTrue(result['result'], 'this is error' + \
', data is incorrect' + str(result['errors']))
This will output :
AssertionError: this is error, data is incorrect[ [ 'some text here.....', '23', '3'], [ 'some text here.....', '244', '4'], [ 'some text here.....', '344', '5'] ]
I need the output as below:
AssertionError: this is error, data is incorrect
[ [ 'some text here.....', '23', '3'],
[ 'some text here.....', '244', '4'],
[ 'some text here.....', '344', '5'] ]
How do we achieve this?