Home | History | Annotate | Download | only in testmock

Lines Matching refs:Proxy

27     class Proxy(object):
35 Proxy.__setattr__ = __setattr__
36 Proxy.__delattr__ = __delattr__
37 return Proxy()
846 proxy = _get_proxy(thing)
848 @patch.object(proxy, 'foo', 'bar')
850 self.assertEqual(proxy.foo, 'bar')
852 self.assertEqual(proxy.foo, 'foo')
854 self.assertNotIn('foo', proxy.__dict__)
864 proxy = _get_proxy(Something, get_only=False)
866 @patch.object(proxy, 'foo', 'bar')
868 self.assertEqual(proxy.foo, 'bar')
870 self.assertEqual(proxy.foo, 'foo')
872 self.assertNotIn('foo', proxy.__dict__)