Test query search ordre

Test that the order comes out as expected when doing a query
This commit is contained in:
Jeff Gregory 2014-02-23 23:38:04 -08:00
parent 76856aadc7
commit 1e011d93d1

View File

@ -256,6 +256,11 @@ def test_query():
table.count().should.equal(4)
results = table.query(forum_name__eq='the-key', subject__gt='1',consistent=True)
expected = ["123", "456", "789"]
for index, item in enumerate(results):
item["subject"].should.equal(expected[index])
results = table.query(forum_name__eq='the-key', subject__gt='1',consistent=True)
sum(1 for _ in results).should.equal(3)