def test_edit_product(self):
        p = self.F.ProductFactory(name="Take One", description="")
        u = self.F.UserFactory()

        f = self.form(
            {
                "name": "Two",
                "description": "not blank",
                "cc_version": str(p.cc_version),
                },
            instance=p,
            user=u,
            )

        product = f.save()

        self.assertEqual(product.name, "Two")
        self.assertEqual(product.description, "not blank")
        self.assertEqual(product.modified_by, u)
Can edit product name and description, with modified-by user.
dataset/ETHPy150Open mozilla/moztrap/tests/view/manage/products/test_forms.py/EditProductFormTest.test_edit_product