Lines Matching full:self
87 def test_latest_entry_parse(self):
88 changelog_contents = "%s\n%s" % (self._example_entry, self._example_changelog)
91 self.assertEquals(self._example_entry, latest_entry)
117 def test_set_reviewer(self):
118 changelog_contents = "%s\n%s" % (self._new_entry_boilerplate, self._example_changelog)
119 changelog_path = self._write_tmp_file_with_contents(changelog_contents)
122 actual_contents = self._read_file_contents(changelog_path)
125 self.assertEquals(actual_contents, expected_contents)
138 def test_message_for_revert(self):
142 self.assertEquals(message, self._revert_message)
165 def _assert_update_for_revert_output(self, args, expected_entry):
166 changelog_contents = "%s\n%s" % (self._new_entry_boilerplate, self._example_changelog)
167 changelog_path = self._write_tmp_file_with_contents(changelog_contents)
172 self.assertEquals(actual_entry, expected_entry)
174 def test_update_for_revert(self):
175 self._assert_update_for_revert_output([12345, "Reason"], self._revert_entry_without_bug_url)
176 self._assert_update_for_revert_output([12345, "Reason", "http://example.com/123"], self._revert_entry_with_bug_url)