Test_projection.py - Getting Dictionary inside of an array

E AssertionError: assert 1 == 2420
E + where 1 = len([{’_id’: ObjectId(‘573a1390f29313caabcd471c’), ‘title’: ‘The Revenge of a Kinematograph Cameraman’}])

Because of which the length always returns as 1

If I can guess, you left the “.limit(1)” at the end of your query.
You need to remove the limit(1), or it will always return only one document.