'Tests that calling all on a queryset with previously defined filters duplicates queryset'

def test_the_all_method_duplicates_queryset(self):

    query1 = TestModel.objects(test_id=5)
    assert (len(query1._where) == 1)
    query2 = query1.filter(expected_result__gte=1)
    assert (len(query2._where) == 2)
    query3 = query2.all()
    assert (query3 == query2)
