def test_redirects_to_next_on_success(self):
        client = Client()
        client.post(
            reverse('login'),
            {'username': 'gracegrant@razzmatazz.local', 'password': 'moo'}
        )
        self.assertEqual(self.subscription1.period, 'immediate')
        next_page = reverse(
            'user_details', kwargs={'user_uuid': self.user2.uuid})
        response = client.post(
            '%s?next=%s' % (reverse('update_subscriptions'), next_page),
            {
                'form-0-id': self.subscription1.pk,
                'form-0-kind': 'web',
                'form-0-period': 'daily',
                'form-TOTAL_FORMS': 1,
                'form-INITIAL_FORMS': 1,
                'form-MAX_NUM_FORMS': 1000
                }
        )
        subscription1 = Subscription.objects.get(pk=self.subscription1.pk)
        self.assertEqual(subscription1.period, 'daily')
        self.assertRedirects(response, next_page)
Parse message object into standard elements of an error and return them.
dataset/ETHPy150Open ofa/connect/open_connect/notifications/tests/test_views.py/SubscriptionsUpdateViewTest.test_redirects_to_next_on_success--crossover with--dataset/ETHPy150Open mmaday/SublimeLinter-contrib-htmlhint/linter.py/Htmlhint.parse_message