Fix test - List order does not matter for projectionexpression
This commit is contained in:
parent
6a601d7d5c
commit
5876dc0186
@ -691,8 +691,8 @@ def test_basic_projection_expressions_using_scan():
|
|||||||
results = table.scan(FilterExpression=Key('forum_name').eq('the-key'),
|
results = table.scan(FilterExpression=Key('forum_name').eq('the-key'),
|
||||||
ProjectionExpression='body')['Items']
|
ProjectionExpression='body')['Items']
|
||||||
|
|
||||||
results.should.equal([{u'body': u'yet another test message'},
|
assert {u'body': u'some test message'} in results
|
||||||
{u'body': u'some test message'}])
|
assert {u'body': u'yet another test message'} in results
|
||||||
|
|
||||||
# The projection expression should not remove data from storage
|
# The projection expression should not remove data from storage
|
||||||
results = table.query(KeyConditionExpression=Key('forum_name').eq('the-key'))
|
results = table.query(KeyConditionExpression=Key('forum_name').eq('the-key'))
|
||||||
|
Loading…
Reference in New Issue
Block a user