Fix dynamo batch length

This commit is contained in:
Steve Pulec 2013-08-03 17:27:34 -04:00
parent 59fe1abfdf
commit 02fa630a3c
2 changed files with 6 additions and 2 deletions

View File

@ -500,4 +500,6 @@ def test_batch_read():
item.put()
items = table.batch_get_item([('the-key', '123'), ('another-key', '789')])
items.should.have.length_ofl(2)
# Iterate through so that batch_item gets called
count = len([x for x in items])
count.should.equal(2)

View File

@ -411,4 +411,6 @@ def test_batch_read():
item.put()
items = table.batch_get_item([('the-key1'), ('another-key')])
items.should.have.length_of(2)
# Iterate through so that batch_item gets called
count = len([x for x in items])
count.should.have.equal(2)