Merge ~twom/launchpad:fix-questionmessage-tests into launchpad:master

Proposed by Tom Wardill
Status: Merged
Approved by: Tom Wardill
Approved revision: 413ff07bfa64d9d662f35a01376b98223b9b0c7d
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~twom/launchpad:fix-questionmessage-tests
Merge into: launchpad:master
Diff against target: 13 lines (+1/-1)
1 file modified
lib/lp/bugs/tests/bugtarget-questiontarget.txt (+1/-1)
Reviewer Review Type Date Requested Status
Ioana Lasc (community) Approve
Review via email: mp+386248@code.launchpad.net

Commit message

Fix counting method

To post a comment you must log in.
Revision history for this message
Ioana Lasc (ilasc) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/lib/lp/bugs/tests/bugtarget-questiontarget.txt b/lib/lp/bugs/tests/bugtarget-questiontarget.txt
2index 2bf90ca..4e7d564 100644
3--- a/lib/lp/bugs/tests/bugtarget-questiontarget.txt
4+++ b/lib/lp/bugs/tests/bugtarget-questiontarget.txt
5@@ -103,7 +103,7 @@ bug.
6 # Bugs save the Bug.description as the first message;
7 # questions do not.
8
9- >>> question.messages.count() == bug.messages.count() - 1
10+ >>> len(question.messages) == bug.messages.count() - 1
11 True
12
13 >>> question.messages[-1].text_contents == bug.messages[-1].text_contents

Subscribers

People subscribed via source and target branches

to status/vote changes: