Fix admin_views tests after commit 3be368c73e
.
This commit is contained in:
parent
161c4da588
commit
f69396665c
|
@ -2628,7 +2628,7 @@ class AdminCustomQuerysetTest(TestCase):
|
||||||
# Message should contain non-ugly model verbose name
|
# Message should contain non-ugly model verbose name
|
||||||
self.assertContains(
|
self.assertContains(
|
||||||
response,
|
response,
|
||||||
'<li class="info">The cover letter "Candidate, Best" was added successfully.</li>',
|
'<li class="success">The cover letter "Candidate, Best" was added successfully.</li>',
|
||||||
html=True
|
html=True
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -2646,7 +2646,7 @@ class AdminCustomQuerysetTest(TestCase):
|
||||||
# Message should contain non-ugly model verbose name
|
# Message should contain non-ugly model verbose name
|
||||||
self.assertContains(
|
self.assertContains(
|
||||||
response,
|
response,
|
||||||
'<li class="info">The short message "ShortMessage object" was added successfully.</li>',
|
'<li class="success">The short message "ShortMessage object" was added successfully.</li>',
|
||||||
html=True
|
html=True
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -2667,7 +2667,7 @@ class AdminCustomQuerysetTest(TestCase):
|
||||||
# Message should contain non-ugly model verbose name
|
# Message should contain non-ugly model verbose name
|
||||||
self.assertContains(
|
self.assertContains(
|
||||||
response,
|
response,
|
||||||
'<li class="info">The telegram "Urgent telegram" was added successfully.</li>',
|
'<li class="success">The telegram "Urgent telegram" was added successfully.</li>',
|
||||||
html=True
|
html=True
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -2685,7 +2685,7 @@ class AdminCustomQuerysetTest(TestCase):
|
||||||
# Message should contain non-ugly model verbose name
|
# Message should contain non-ugly model verbose name
|
||||||
self.assertContains(
|
self.assertContains(
|
||||||
response,
|
response,
|
||||||
'<li class="info">The paper "Paper object" was added successfully.</li>',
|
'<li class="success">The paper "Paper object" was added successfully.</li>',
|
||||||
html=True
|
html=True
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -2710,7 +2710,7 @@ class AdminCustomQuerysetTest(TestCase):
|
||||||
# representation is set by model's __unicode__()
|
# representation is set by model's __unicode__()
|
||||||
self.assertContains(
|
self.assertContains(
|
||||||
response,
|
response,
|
||||||
'<li class="info">The cover letter "John Doe II" was changed successfully.</li>',
|
'<li class="success">The cover letter "John Doe II" was changed successfully.</li>',
|
||||||
html=True
|
html=True
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -2732,7 +2732,7 @@ class AdminCustomQuerysetTest(TestCase):
|
||||||
# instance representation is set by six.text_type()
|
# instance representation is set by six.text_type()
|
||||||
self.assertContains(
|
self.assertContains(
|
||||||
response,
|
response,
|
||||||
'<li class="info">The short message "ShortMessage_Deferred_timestamp object" was changed successfully.</li>',
|
'<li class="success">The short message "ShortMessage_Deferred_timestamp object" was changed successfully.</li>',
|
||||||
html=True
|
html=True
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -2757,7 +2757,7 @@ class AdminCustomQuerysetTest(TestCase):
|
||||||
# representation is set by model's __unicode__()
|
# representation is set by model's __unicode__()
|
||||||
self.assertContains(
|
self.assertContains(
|
||||||
response,
|
response,
|
||||||
'<li class="info">The telegram "Telegram without typo" was changed successfully.</li>',
|
'<li class="success">The telegram "Telegram without typo" was changed successfully.</li>',
|
||||||
html=True
|
html=True
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -2779,7 +2779,7 @@ class AdminCustomQuerysetTest(TestCase):
|
||||||
# instance representation is set by six.text_type()
|
# instance representation is set by six.text_type()
|
||||||
self.assertContains(
|
self.assertContains(
|
||||||
response,
|
response,
|
||||||
'<li class="info">The paper "Paper_Deferred_author object" was changed successfully.</li>',
|
'<li class="success">The paper "Paper_Deferred_author object" was changed successfully.</li>',
|
||||||
html=True
|
html=True
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue