You can just use assertRaisesRegexp
.
with self.assertRaisesRegexp(ValidationError, "Both"):
de.full_clean()
When you use it as a context manager the 2nd argument is a regular expression to search through the exception’s string representation.