

def test_instance_being_saved_is_updated(self):
    'Version being saved gets correct order after reorder.'
    p = self.F.ProductFactory.create()
    self.F.ProductVersionFactory.create(version='2.9', product=p)
    pv = self.F.ProductVersionFactory.create(version='2.10', product=self)
    self.assertEqual(pv.order, 2)
    self.assertEqual(pv.latest, True)

dataset/ETHPy150Open mozilla/moztrap/tests/model/core/models/test_productversion.py ProductVersionTest.test_instance_being_saved_is_updated/VarMisuse@57/94 `p`->`self`