def test_create(self):
        res = self.client.get('/inlines/new/')
        self.assertEqual(res.status_code, 200)
        self.assertEqual(0, Tag.objects.count())

        data = {
            'name': 'Dummy Order',
            'items-TOTAL_FORMS': '2',
            'items-INITIAL_FORMS': '0',
            'items-MAX_NUM_FORMS': '',
            'items-0-name': 'Bubble Bath',
            'items-0-sku': '1234567890123',
            'items-0-price': D('9.99'),
            'items-0-status': 0,
            'items-1-DELETE': True,
            'extra_views_tests-tag-content_type-object_id-TOTAL_FORMS': 2,
            'extra_views_tests-tag-content_type-object_id-INITIAL_FORMS': 0,
            'extra_views_tests-tag-content_type-object_id-MAX_NUM_FORMS': '',
            'extra_views_tests-tag-content_type-object_id-0-name': 'Test',
            'extra_views_tests-tag-content_type-object_id-1-DELETE': True,
        }

        res = self.client.post('/inlines/new/', data, follow=True)

        self.assertTrue('object' in res.context)
        self.assertTrue('order' in res.context)

        self.assertEqual(res.status_code, 200)
        self.assertEqual(1, Tag.objects.count())
dataset/ETHPy150Open AndrewIngram/django-extra-views/extra_views_tests/tests.py/ModelWithInlinesTests.test_create/original