Skip to content

Commit

Permalink
Added test for parse_options_header
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenpike committed Feb 7, 2024
1 parent a449781 commit ed5fa20
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_multipart.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,11 @@ def test_handles_ie6_bug(self):

self.assertEqual(p[b'filename'], b'file.txt')

def test_handles_rfc_2231(self):
t, p = parse_options_header(b'text/plain; param*=us-ascii\'en-us\'encoded%20message')

self.assertEqual(p[b'param'], b'encoded message')


class TestBaseParser(unittest.TestCase):
def setUp(self):
Expand Down

0 comments on commit ed5fa20

Please sign in to comment.