Adding success_msg to assert (#41048)

* Adding success_msg to assert

* Added missing version_added. Importing and checking string_types.
This commit is contained in:
John Imison 2018-06-15 01:34:04 +10:00 committed by Brian Coca
parent 50e776877d
commit 0d885260a5
2 changed files with 14 additions and 2 deletions

View file

@ -30,6 +30,10 @@ options:
msg:
description:
- "The customized message used for a failing assertion"
success_msg:
version_added: "2.7"
description:
- "The customized message used for a successful assertion"
notes:
- This module is also supported for Windows targets.
author:
@ -50,4 +54,5 @@ EXAMPLES = '''
- "my_param <= 100"
- "my_param >= 0"
msg: "'my_param' must be between 0 and 100"
success_msg: "'my_param' is between 0 and 100"
'''