1👍
✅
You can import parse_email
directly from your tests:
from somemodel.management.commands.process_email import parse_email
assert_equals(parse_email("..."), ...)
Source:stackexchange.com