projects
/
be.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
172df1f
)
Fixed comment.cmp_attr unittest because "o" > "a" so cmp("o", "a") == 1.
author
W. Trevor King
<wking@drexel.edu>
Fri, 31 Jul 2009 08:17:05 +0000
(
04:17
-0400)
committer
W. Trevor King
<wking@drexel.edu>
Fri, 31 Jul 2009 08:17:05 +0000
(
04:17
-0400)
libbe/comment.py
patch
|
blob
|
history
diff --git
a/libbe/comment.py
b/libbe/comment.py
index c5bec438541cacfaca836220cc2b5a73503f305c..b2fc5567aa3038110291fdbc17b474b8a38e941f 100644
(file)
--- 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