﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
35528	Add EmailMultiAlternatives.body_contains() to aid email test assertions	Ronny Vedrilla	Ronny Vedrilla	"Currently, it's very hard and tedious to assert the content of an email object. Therefore, we want to add a method ""body_contains()"" to ""EmailMultiAlternatives"" to check a search string in all available text-based alternatives (content parts, like HTML).

This method can then be easily asserted in any given unit-test.

There's a forum discussion going on about this topic: https://forum.djangoproject.com/t/improve-email-unit-testing/32044/1

I've already created a PR for a suggetion: https://github.com/django/django/pull/18278/files"	New feature	closed	Core (Mail)	dev	Normal	fixed	email		Ready for checkin	1	0	0	0	0	0
