

def test_deprecation_warning(self):
    with self.assertRaises(DeprecationWarning):
        x = self.message.old_field
    with x.assertRaises(DeprecationWarning):
        self.message.old_field = 4

dataset/ETHPy150Open appnexus/pyrobuf/tests/test_deprecated_field.py DecimalDefaultsTest.test_deprecation_warning/VarMisuse@30/38 `self`->`x`