def test_context(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('/modelformset/simple/')
        self.assertTrue('object_list' in res.context)
        self.assertEqual(len(res.context['object_list']), 10)
dataset/ETHPy150Open AndrewIngram/django-extra-views/extra_views_tests/tests.py/ModelFormSetViewTests.test_context/original