Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix admin_views tests after commit 3be368c.

  • Loading branch information...
commit f69396665c1dd3b6b70cc053f16403c66d57ce60 1 parent 161c4da
Baptiste Mispelon authored April 08, 2013

Showing 1 changed file with 8 additions and 8 deletions. Show diff stats Hide diff stats

  1. 16  tests/admin_views/tests.py
16  tests/admin_views/tests.py
@@ -2628,7 +2628,7 @@ def test_add_model_modeladmin_defer_qs(self):
2628 2628
         # Message should contain non-ugly model verbose name
2629 2629
         self.assertContains(
2630 2630
             response,
2631  
-            '<li class="info">The cover letter &quot;Candidate, Best&quot; was added successfully.</li>',
  2631
+            '<li class="success">The cover letter &quot;Candidate, Best&quot; was added successfully.</li>',
2632 2632
             html=True
2633 2633
         )
2634 2634
 
@@ -2646,7 +2646,7 @@ def test_add_model_modeladmin_defer_qs(self):
2646 2646
         # Message should contain non-ugly model verbose name
2647 2647
         self.assertContains(
2648 2648
             response,
2649  
-            '<li class="info">The short message &quot;ShortMessage object&quot; was added successfully.</li>',
  2649
+            '<li class="success">The short message &quot;ShortMessage object&quot; was added successfully.</li>',
2650 2650
             html=True
2651 2651
         )
2652 2652
 
@@ -2667,7 +2667,7 @@ def test_add_model_modeladmin_only_qs(self):
2667 2667
         # Message should contain non-ugly model verbose name
2668 2668
         self.assertContains(
2669 2669
             response,
2670  
-            '<li class="info">The telegram &quot;Urgent telegram&quot; was added successfully.</li>',
  2670
+            '<li class="success">The telegram &quot;Urgent telegram&quot; was added successfully.</li>',
2671 2671
             html=True
2672 2672
         )
2673 2673
 
@@ -2685,7 +2685,7 @@ def test_add_model_modeladmin_only_qs(self):
2685 2685
         # Message should contain non-ugly model verbose name
2686 2686
         self.assertContains(
2687 2687
             response,
2688  
-            '<li class="info">The paper &quot;Paper object&quot; was added successfully.</li>',
  2688
+            '<li class="success">The paper &quot;Paper object&quot; was added successfully.</li>',
2689 2689
             html=True
2690 2690
         )
2691 2691
 
@@ -2710,7 +2710,7 @@ def test_edit_model_modeladmin_defer_qs(self):
2710 2710
         # representation is set by model's __unicode__()
2711 2711
         self.assertContains(
2712 2712
             response,
2713  
-            '<li class="info">The cover letter &quot;John Doe II&quot; was changed successfully.</li>',
  2713
+            '<li class="success">The cover letter &quot;John Doe II&quot; was changed successfully.</li>',
2714 2714
             html=True
2715 2715
         )
2716 2716
 
@@ -2732,7 +2732,7 @@ def test_edit_model_modeladmin_defer_qs(self):
2732 2732
         # instance representation is set by six.text_type()
2733 2733
         self.assertContains(
2734 2734
             response,
2735  
-            '<li class="info">The short message &quot;ShortMessage_Deferred_timestamp object&quot; was changed successfully.</li>',
  2735
+            '<li class="success">The short message &quot;ShortMessage_Deferred_timestamp object&quot; was changed successfully.</li>',
2736 2736
             html=True
2737 2737
         )
2738 2738
 
@@ -2757,7 +2757,7 @@ def test_edit_model_modeladmin_only_qs(self):
2757 2757
         # representation is set by model's __unicode__()
2758 2758
         self.assertContains(
2759 2759
             response,
2760  
-            '<li class="info">The telegram &quot;Telegram without typo&quot; was changed successfully.</li>',
  2760
+            '<li class="success">The telegram &quot;Telegram without typo&quot; was changed successfully.</li>',
2761 2761
             html=True
2762 2762
         )
2763 2763
 
@@ -2779,7 +2779,7 @@ def test_edit_model_modeladmin_only_qs(self):
2779 2779
         # instance representation is set by six.text_type()
2780 2780
         self.assertContains(
2781 2781
             response,
2782  
-            '<li class="info">The paper &quot;Paper_Deferred_author object&quot; was changed successfully.</li>',
  2782
+            '<li class="success">The paper &quot;Paper_Deferred_author object&quot; was changed successfully.</li>',
2783 2783
             html=True
2784 2784
         )
2785 2785
 

0 notes on commit f693966

Please sign in to comment.
Something went wrong with that request. Please try again.