

def test_clone(self):
    'Cloning PV adds ".next" to version, "Cloned:" to codename.'
    c = self.F.ProductVersionFactory.create(version='1.0', codename='Foo')
    new = c.clone()
    self.assertNotEqual(new, c)
    self.assertIsInstance(new, type(c))
    self.assertEqual(new.version, '1.0.next')
    self.assertEqual(new.codename, 'Cloned: Foo')

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