aboutsummaryrefslogtreecommitdiffstats
path: root/libbe
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-07-31 04:17:05 -0400
committerW. Trevor King <wking@drexel.edu>2009-07-31 04:17:05 -0400
commit3a56bcd8744192de75e69b595056dfe0a43680a2 (patch)
treed94f77dbce91e196e7efd6fb51f7de18c2d3b6b5 /libbe
parent172df1fb94761481c28804e5af4730376942e304 (diff)
downloadbugseverywhere-3a56bcd8744192de75e69b595056dfe0a43680a2.tar.gz
Fixed comment.cmp_attr unittest because "o" > "a" so cmp("o", "a") == 1.
Diffstat (limited to 'libbe')
-rw-r--r--libbe/comment.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbe/comment.py b/libbe/comment.py
index c5bec43..b2fc556 100644
--- a/libbe/comment.py
+++ b/libbe/comment.py
@@ -694,9 +694,9 @@ def cmp_attr(comment_1, comment_2, attr, invert=False):
>>> commentB = Comment()
>>> commentA.author = "John Doe"
>>> commentB.author = "Jane Doe"
- >>> cmp_attr(commentA, commentB, attr) < 0
+ >>> cmp_attr(commentA, commentB, attr) > 0
True
- >>> cmp_attr(commentA, commentB, attr, invert=True) > 0
+ >>> cmp_attr(commentA, commentB, attr, invert=True) < 0
True
>>> commentB.author = "John Doe"
>>> cmp_attr(commentA, commentB, attr) == 0