本文整理匯總了Python中webkitpy.common.checkout.changelog.ChangeLog.update_with_unreviewed_message方法的典型用法代碼示例。如果您正苦於以下問題:Python ChangeLog.update_with_unreviewed_message方法的具體用法?Python ChangeLog.update_with_unreviewed_message怎麽用?Python ChangeLog.update_with_unreviewed_message使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類webkitpy.common.checkout.changelog.ChangeLog
的用法示例。
在下文中一共展示了ChangeLog.update_with_unreviewed_message方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: _assert_message_for_revert_output
# 需要導入模塊: from webkitpy.common.checkout.changelog import ChangeLog [as 別名]
# 或者: from webkitpy.common.checkout.changelog.ChangeLog import update_with_unreviewed_message [as 別名]
def _assert_message_for_revert_output(self, args, expected_entry):
changelog_contents = u"%s\n%s" % (changelog_unittest.ChangeLogTest._new_entry_boilerplate, changelog_unittest.ChangeLogTest._example_changelog)
changelog_path = self._write_tmp_file_with_contents(changelog_contents.encode("utf-8"))
changelog = ChangeLog(changelog_path)
changelog.update_with_unreviewed_message(PrepareChangeLogForRevert._message_for_revert(*args))
actual_entry = changelog.latest_entry()
os.remove(changelog_path)
self.assertEqual(actual_entry.contents(), expected_entry)
self.assertEqual(actual_entry.reviewer_text(), None)
# These checks could be removed to allow this to work on other entries:
self.assertEqual(actual_entry.author_name(), "Eric Seidel")
self.assertEqual(actual_entry.author_email(), "[email protected]")