12 lines
333 B
Python
12 lines
333 B
Python
from fixtures import *
|
|
from maildirclean.maildir import make_email_metadata
|
|
|
|
|
|
def test_email_parsing(test_email):
|
|
|
|
metadata = make_email_metadata(test_email)
|
|
|
|
assert metadata["From"] == '"John Doe" sender@example.com'
|
|
assert metadata["Date"] == "Wed, 16 Apr 2025 12:23:35 -0400"
|
|
assert metadata["Path"] == test_email
|