+ 4
what is the meaning of assert false and assert true?
2 Respuestas
+ 7
it means it only return False or True..if false raise assertion error..if true No error ,and continue the execution.
0
In assert True, you are asserting that the expression is true. If it is not, then it will display the message and the assertion will fail. In assert False, you are asserting that an expression evaluates to false. ... assert True (message, value == false) == assert False (message, value);