'#21430 -- Verifies a warning is raised for querysets that are
unpickled with a different Django version than the current'

def test_unsupported_unpickle(self):

    qs = Group.previous_django_version_objects.all()
    msg = ("Pickled    queryset    instance's    Django    version    1.0    does    not    match    the    current    version    %s." % get_version())
    with self.assertRaisesMessage(RuntimeWarning, msg):
        pickle.loads(pickle.dumps(qs))
