

@patch('moztrap.model.mtmodel.datetime')
def test_reorder_versions_does_not_change_modified_on(self, mock_dt):
    'Updating latest product version does not change modified_on.'
    self.datetime.utcnow.return_value = datetime(2012, 1, 30)
    pv = self.F.ProductVersionFactory.create()
    mock_dt.datetime.utcnow.return_value = datetime(2012, 1, 31)
    pv.product.reorder_versions()
    self.assertEqual(self.refresh(pv).modified_on, datetime(2012, 1, 30))
    self.assertEqual(self.refresh(pv.product).modified_on, datetime(2012, 1, 30))

dataset/ETHPy150Open mozilla/moztrap/tests/model/core/models/test_productversion.py ProductVersionTest.test_reorder_versions_does_not_change_modified_on/VarMisuse@20/61 `mock_dt`->`self`