def test_with_workflow(self):
        response = self.client.post(
            reverse('motion-list'),
            {'title': 'test_title_eemuR5hoo4ru2ahgh5EJ',
             'text': 'test_text_ohviePopahPhoili7yee',
             'workflow_id': '2'})

        self.assertEqual(response.status_code, status.HTTP_201_CREATED)
        self.assertEqual(Motion.objects.get().state.workflow_id, 2)
Test to create a motion with a specific workflow.
dataset/ETHPy150Open OpenSlides/OpenSlides/tests/integration/motions/test_viewset.py/CreateMotion.test_with_workflow