Skip to content

Commit

Permalink
Merge pull request #1003 from bmispelon/fix-tests-3be368c73e
Browse files Browse the repository at this point in the history
Fix admin_views tests after commit 3be368c.
  • Loading branch information
jezdez committed Apr 8, 2013
2 parents 161c4da + f693966 commit 7441a29
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/admin_views/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -2628,7 +2628,7 @@ def test_add_model_modeladmin_defer_qs(self):
# Message should contain non-ugly model verbose name
self.assertContains(
response,
'<li class="info">The cover letter &quot;Candidate, Best&quot; was added successfully.</li>',
'<li class="success">The cover letter &quot;Candidate, Best&quot; was added successfully.</li>',
html=True
)

Expand All @@ -2646,7 +2646,7 @@ def test_add_model_modeladmin_defer_qs(self):
# Message should contain non-ugly model verbose name
self.assertContains(
response,
'<li class="info">The short message &quot;ShortMessage object&quot; was added successfully.</li>',
'<li class="success">The short message &quot;ShortMessage object&quot; was added successfully.</li>',
html=True
)

Expand All @@ -2667,7 +2667,7 @@ def test_add_model_modeladmin_only_qs(self):
# Message should contain non-ugly model verbose name
self.assertContains(
response,
'<li class="info">The telegram &quot;Urgent telegram&quot; was added successfully.</li>',
'<li class="success">The telegram &quot;Urgent telegram&quot; was added successfully.</li>',
html=True
)

Expand All @@ -2685,7 +2685,7 @@ def test_add_model_modeladmin_only_qs(self):
# Message should contain non-ugly model verbose name
self.assertContains(
response,
'<li class="info">The paper &quot;Paper object&quot; was added successfully.</li>',
'<li class="success">The paper &quot;Paper object&quot; was added successfully.</li>',
html=True
)

Expand All @@ -2710,7 +2710,7 @@ def test_edit_model_modeladmin_defer_qs(self):
# representation is set by model's __unicode__()
self.assertContains(
response,
'<li class="info">The cover letter &quot;John Doe II&quot; was changed successfully.</li>',
'<li class="success">The cover letter &quot;John Doe II&quot; was changed successfully.</li>',
html=True
)

Expand All @@ -2732,7 +2732,7 @@ def test_edit_model_modeladmin_defer_qs(self):
# instance representation is set by six.text_type()
self.assertContains(
response,
'<li class="info">The short message &quot;ShortMessage_Deferred_timestamp object&quot; was changed successfully.</li>',
'<li class="success">The short message &quot;ShortMessage_Deferred_timestamp object&quot; was changed successfully.</li>',
html=True
)

Expand All @@ -2757,7 +2757,7 @@ def test_edit_model_modeladmin_only_qs(self):
# representation is set by model's __unicode__()
self.assertContains(
response,
'<li class="info">The telegram &quot;Telegram without typo&quot; was changed successfully.</li>',
'<li class="success">The telegram &quot;Telegram without typo&quot; was changed successfully.</li>',
html=True
)

Expand All @@ -2779,7 +2779,7 @@ def test_edit_model_modeladmin_only_qs(self):
# instance representation is set by six.text_type()
self.assertContains(
response,
'<li class="info">The paper &quot;Paper_Deferred_author object&quot; was changed successfully.</li>',
'<li class="success">The paper &quot;Paper_Deferred_author object&quot; was changed successfully.</li>',
html=True
)

Expand Down

0 comments on commit 7441a29

Please sign in to comment.