Lines Matching refs:newvalue
141 >>> with patch.dict(foo, {'newkey': 'newvalue'}, clear=True):
142 ... assert foo == {'newkey': 'newvalue'}
1604 >>> @patch.dict(foo, {'newkey': 'newvalue'})
1606 ... assert foo == {'newkey': 'newvalue'}
1616 >>> @patch.dict('os.environ', {'newkey': 'newvalue'})
1619 ... self.assertEqual(os.environ['newkey'], 'newvalue')
1630 >>> with patch.dict(foo, {'newkey': 'newvalue'}) as patched_foo:
1631 ... assert foo == {'newkey': 'newvalue'}
1632 ... assert patched_foo == {'newkey': 'newvalue'}
1640 >>> with patch.dict('os.environ', {'newkey': 'newvalue'}):
1643 newvalue