Lines Matching refs:target
668 # bpo-35512: Ensure that patch with a string target resolves to
670 original = support.target.copy()
672 @patch.dict('unittest.test.testmock.support.target', {'bar': 'BAR'})
674 self.assertEqual(support.target, {'foo': 'BAZ', 'bar': 'BAR'})
677 support.target = {'foo': 'BAZ'}
679 self.assertEqual(support.target, {'foo': 'BAZ'})
681 support.target = original
1707 def with_custom_patch(target):
1708 getter, attribute = _get_target(target)
1969 for target in ['', 12, Foo()]:
1970 with self.subTest(target=target):
1972 patch(target)