mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #20841 -- Added messages to NotImplementedErrors
Thanks joseph at vertstudios.com for the suggestion.
This commit is contained in:
parent
d59f1993f1
commit
b2b763448f
26 changed files with 96 additions and 95 deletions
|
@ -443,10 +443,10 @@ class BaseEmailBackendTests(HeadersCheckMixin, object):
|
|||
self.assertEqual(first[:len(second)], second, "First string doesn't start with the second.")
|
||||
|
||||
def get_mailbox_content(self):
|
||||
raise NotImplementedError
|
||||
raise NotImplementedError('subclasses of BaseEmailBackendTests must provide a get_mailbox_content() method')
|
||||
|
||||
def flush_mailbox(self):
|
||||
raise NotImplementedError
|
||||
raise NotImplementedError('subclasses of BaseEmailBackendTests may require a flush_mailbox() method')
|
||||
|
||||
def get_the_message(self):
|
||||
mailbox = self.get_mailbox_content()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue