@@ -98,27 +98,27 @@ def test_history_list_contains_diff_changes(self):
9898 self .assertContains (response , "Changes" )
9999 # The poll hasn't had any of its fields changed after creation,
100100 # so these values should not be present
101- self .assertNotContains (response , "question " )
101+ self .assertNotContains (response , "Question " )
102102 self .assertNotContains (response , "why?" )
103- self .assertNotContains (response , "pub_date " )
103+ self .assertNotContains (response , "Date published " )
104104
105105 poll .question = "how?"
106106 poll .save ()
107107 response = self .client .get (poll_history_url )
108- self .assertContains (response , "question " )
108+ self .assertContains (response , "Question " )
109109 self .assertContains (response , "why?" )
110110 self .assertContains (response , "how?" )
111- self .assertNotContains (response , "pub_date " )
111+ self .assertNotContains (response , "Date published " )
112112
113113 poll .question = "when?"
114114 poll .pub_date = parse_datetime ("2024-04-04 04:04:04" )
115115 poll .save ()
116116 response = self .client .get (poll_history_url )
117- self .assertContains (response , "question " )
117+ self .assertContains (response , "Question " )
118118 self .assertContains (response , "why?" )
119119 self .assertContains (response , "how?" )
120120 self .assertContains (response , "when?" )
121- self .assertContains (response , "pub_date " )
121+ self .assertContains (response , "Date published " )
122122 self .assertContains (response , "2021-01-01 10:00:00" )
123123 self .assertContains (response , "2024-04-04 04:04:04" )
124124
@@ -131,7 +131,7 @@ def test_history_list_doesnt_contain_too_long_diff_changes(self):
131131 poll .save ()
132132
133133 response = self .client .get (get_history_url (poll ))
134- self .assertContains (response , "question " )
134+ self .assertContains (response , "Question " )
135135 expected_num_chars = SimpleHistoryAdmin .max_displayed_history_change_chars - 1
136136 self .assertContains (response , f"{ 'A' * expected_num_chars } …" )
137137 self .assertContains (response , f"{ 'B' * expected_num_chars } …" )
0 commit comments