File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -78,18 +78,13 @@ def testQuoteData(self):
7878 self .assertEqual (expected , smtplib .quotedata (teststr ))
7979
8080 def testQuoteAddr (self ):
81- # Standard address is wrapped in angle brackets.
8281 self .assertEqual (smtplib .quoteaddr ('user@example.com' ),
8382 '<user@example.com>' )
84- # Already angle-bracketed and valid.
8583 self .assertEqual (smtplib .quoteaddr ('<user@example.com>' ),
8684 '<user@example.com>' )
87- # Empty string produces empty angle brackets.
8885 self .assertEqual (smtplib .quoteaddr ('' ), '<>' )
8986
9087 def testQuoteAddrMalformedAngleBracket (self ):
91- # Inputs starting with '<' but missing closing '>' must still
92- # produce output that ends with '>'.
9388 result = smtplib .quoteaddr ('<' )
9489 self .assertTrue (result .startswith ('<' ) and result .endswith ('>' ), result )
9590 result = smtplib .quoteaddr ('< ' )
You can’t perform that action at this time.
0 commit comments