From 5876dc01864d2f19b73e4555ec88fa045b88e240 Mon Sep 17 00:00:00 2001 From: Bert Blommers Date: Sun, 3 Nov 2019 07:14:19 -0800 Subject: [PATCH] Fix test - List order does not matter for projectionexpression --- tests/test_dynamodb2/test_dynamodb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_dynamodb2/test_dynamodb.py b/tests/test_dynamodb2/test_dynamodb.py index 2d47a83ef..d6802f66d 100644 --- a/tests/test_dynamodb2/test_dynamodb.py +++ b/tests/test_dynamodb2/test_dynamodb.py @@ -691,8 +691,8 @@ def test_basic_projection_expressions_using_scan(): results = table.scan(FilterExpression=Key('forum_name').eq('the-key'), ProjectionExpression='body')['Items'] - results.should.equal([{u'body': u'yet another test message'}, - {u'body': u'some test message'}]) + assert {u'body': u'some test message'} in results + assert {u'body': u'yet another test message'} in results # The projection expression should not remove data from storage results = table.query(KeyConditionExpression=Key('forum_name').eq('the-key'))