1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

pytest: samba-tool visualize: improve a message

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Douglas Bagnall 2022-09-14 21:12:47 +12:00 committed by Andrew Bartlett
parent ed72ec7631
commit 2775d6b5d1

View File

@ -126,7 +126,8 @@ class SambaToolVisualizeLdif(SambaToolCmdTest):
'-H', self.dburl,
'-S', *args)
self.assertCmdSuccess(result, out, err)
self.assertTrue(colour_re.search(out))
self.assertTrue(colour_re.search(out),
f"'{' '.join(args)}' should be colour")
uncoloured = colour_re.sub('', out)
self.assertStringsEqual(monochrome, uncoloured, strip=True)