def test_action_simple(self):
        with mock.patch.object(settings, 'START_IGNORE_URLS', (
            '/auth/',
        )):
            parameters = {
                smart_text('key'): 'value'
            }

            response = self.client.post(reverse('action_simple'), data=parameters)

            self.assertEqual(response.status_code, 302)

            User.objects.create_user('newbie', 'newbie@example.com', '$ecret')

            data = engine.get_next_action(self.client)

            assert 'parameters' in data
            assert 'POST' in data['parameters']

            response = self.client.post(reverse('login'), data={
                'username': 'newbie',
                'password': '$ecret'
            })

            response = self.client.get(reverse('backward_login_redirect'))

            assert 'sent' in self.client.session
            assert self.client.session['sent'] is True
dataset/ETHPy150Open thoas/django-backward/backward/tests/tests.py/BasicTests.test_action_simple/original