'#21430 -- Verifies a warning is raised for querysets that are
unpickled without a Django version'

def test_missing_django_version_unpickling(self):

    qs = Group.missing_django_version_objects.all()
    msg = "Pickled    queryset    instance's    Django    version    is    not    specified."
    with self.assertRaisesMessage(RuntimeWarning, msg):
        pickle.loads(pickle.dumps(qs))
