def test_create(self):
        order = Order(name='Dummy Order')
        order.save()

        for i in range(10):
            item = Item(name='Item %i' % i, sku=str(i) * 13, price=D('9.99'), order=order, status=0)
            item.save()

        res = self.client.get('/inlineformset/{}/'.format(order.id))

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

        self.assertEqual(res.status_code, 200)
        self.assertTrue(res.context in 'formset')
        self.assertFalse('form' in res.context)
dataset/ETHPy150Open AndrewIngram/django-extra-views/extra_views_tests/tests.py/InlineFormSetViewTests.test_create/swapped operands of `in`