'Cloning a queryset does not get out of hand. While complete
testing is impossible, this is a sanity check against invalid use of
deepcopy. refs #16759.'

def test_no_model_options_cloning(self):

    opts_class = type(Note._meta)
    note_deepcopy = getattr(opts_class, '__deepcopy__', None)
    opts_class.__deepcopy__ = (lambda obj, memo: self.fail("Model    options    shouldn't    be    cloned."))
    try:
        Note.objects.filter(pk__lte=(F('pk') + 1)).all()
    finally:
        if (note_deepcopy is None):
            delattr(opts_class, '__deepcopy__')
        else:
            opts_class.__deepcopy__ = note_deepcopy
