Skip to content

Commit

Permalink
imap4.IMAP4Server: uncomment inexplicably commented-out test code.
Browse files Browse the repository at this point in the history
  • Loading branch information
markrwilliams committed Aug 20, 2017
1 parent a059a72 commit 6504365
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/twisted/mail/test/test_imap.py
Original file line number Diff line number Diff line change
Expand Up @@ -5764,17 +5764,17 @@ def test_emptyContentType(self):
minor MIME types of a L{IMessagePart} provider whose headers
lack a C{Content-Type}, or have an empty value for it.
"""
# missing = FakeyMessage({}, (), b'', b'', 123, None)
# missingContentTypeStructure = imap4.getBodyStructure(missing)
# missingMajor, missingMinor = missingContentTypeStructure[:2]
# self.assertIs(None, missingMajor)
# self.assertIs(None, missingMinor)

# empty = FakeyMessage({"content-type": ""}, (), b'', b'', 123, None)
# emptyContentTypeStructure = imap4.getBodyStructure(empty)
# emptyMajor, emptyMinor = emptyContentTypeStructure[:2]
# self.assertIs(None, emptyMajor)
# self.assertIs(None, emptyMinor)
missing = FakeyMessage({}, (), b'', b'', 123, None)
missingContentTypeStructure = imap4.getBodyStructure(missing)
missingMajor, missingMinor = missingContentTypeStructure[:2]
self.assertIs(None, missingMajor)
self.assertIs(None, missingMinor)

empty = FakeyMessage({"content-type": ""}, (), b'', b'', 123, None)
emptyContentTypeStructure = imap4.getBodyStructure(empty)
emptyMajor, emptyMinor = emptyContentTypeStructure[:2]
self.assertIs(None, emptyMajor)
self.assertIs(None, emptyMinor)

newline = FakeyMessage({"content-type": "\n"}, (), b'', b'', 123, None)
newlineContentTypeStructure = imap4.getBodyStructure(newline)
Expand Down

0 comments on commit 6504365

Please sign in to comment.