updated map/reduce documentation
This commit is contained in:
parent
a4c5fa57e0
commit
008a62e4e9
2 changed files with 10 additions and 14 deletions
|
|
@ -601,7 +601,10 @@ class QuerySetTest(unittest.TestCase):
|
|||
results = results.map_reduce(map_f, reduce_f, finalize_f=finalize_f)
|
||||
results = list(results)
|
||||
|
||||
# assert troublesome Buzz article is ranked 1st
|
||||
self.assertTrue(results[0].object.title.startswith("Google Buzz"))
|
||||
|
||||
# assert laser vision is ranked last
|
||||
self.assertTrue(results[-1].object.title.startswith("How to see"))
|
||||
|
||||
Link.drop_collection()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue