diff --git a/tests.py b/tests.py index fa0de616..3d041a2f 100644 --- a/tests.py +++ b/tests.py @@ -2139,6 +2139,25 @@ def testReplaceEmailQuote(): print('Expect: ' + expectedStr) assert resultStr == expectedStr + testStr = "
" + \ + "@somenick" + \ + "
> Text1.
>
" + \
+ "> Text2
>
> Text3
" + \
+ ">
> Text4
>
> " + \
+ "Text5
>
> Text6
Text7
" + expectedStr = "" + \ + "@somenick" + \ + "
Text1.
" + \ + "Text2
Text3
Text4
" + \ + "
Text5
Text6
Text7
" + resultStr = htmlReplaceEmailQuote(testStr) + if resultStr != expectedStr: + print('Result: ' + resultStr) + print('Expect: ' + expectedStr) + assert resultStr == expectedStr + def runAllTests(): print('Running tests...')