

def test_inherit_team(self):
    "If ``has_team`` is False, ProductVersion's team is its parent's."
    pv = self.F.ProductVersionFactory.create(has_team=False)
    u = self.F.UserFactory.create()
    pv.product.team.add(u)
    self.assertEqual(list(pv.team.all()), [u])

dataset/ETHPy150Open mozilla/moztrap/tests/model/core/models/test_productversion.py ProductVersionTest.test_inherit_team/original