python tests: assert string equality, with diff
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Fri, 5 Jan 2018 03:45:37 +0000 (16:45 +1300)
committerKarolin Seeger <kseeger@samba.org>
Sat, 13 Jan 2018 16:37:06 +0000 (17:37 +0100)
commitf2762d088001408a706e88e0fe6f46181c01fc3f
tree464f820be6d1fc9f2daa3bb12612f8d5c61f4d3e
parent3f2762d0b716e8a440cefeb1867caa303e21af40
python tests: assert string equality, with diff

In the success case this works just like self.assertEqual(),
but when things fail you get a better representation of where it went
wrong (a unified diff).

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/__init__.py