Skip to content

Can we customise the "output" field's formatting? #62

Answered by liamsaliba
Protofall asked this question in Q&A
Discussion options

You must be logged in to vote

The assertIn function (as well as other assertX functions) has a msg parameter where you can pass in a custom message.

To hide the default message generated by the assertX functions, you can call self.longMessage = False prior to calling the assertX function. I've placed it inside of setUp in my own use.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Protofall
Comment options

@Protofall
Comment options

Answer selected by Protofall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants