mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +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:
parent
ed72ec7631
commit
2775d6b5d1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user