Is there a python unit test framework that gives compact error output when comparing strings

Using the Java JUnit framework and comparing the lines "abcde" and "abde", you get the expected error output: <... b [c] d ...> but it was: <... b [] d ...> '

Using python unittest I get "abcde"! = "Abde", which is not so useful if you are dealing with long strings.

So my question is: is there a python unit test framework that gives the same compact output as JUnit for Java?

+3
source share
1 answer
+1

Source: https://habr.com/ru/post/1773946/


All Articles