Searched refs:wrapped_dict (Results 1 – 2 of 2) sorted by relevance
769 def __init__(self, wrapped_dict=None): argument770 if wrapped_dict is None:772 wrapped_dict = {}773 if not isinstance(wrapped_dict, collections_abc.Mapping):775 wrapped_dict = dict(wrapped_dict)776 wrapt.ObjectProxy.__init__(self, wrapped_dict)
723 wrapped_dict = MagicMock(wraps=data)724 self.assertEqual(wrapped_dict.get('foo'), 'bar')726 self.assertIsInstance(wrapped_dict['foo'], MagicMock)728 self.assertFalse('foo' in wrapped_dict)731 wrapped_dict.get.return_value = 'return_value'732 self.assertEqual(wrapped_dict.get('foo'), 'return_value')735 wrapped_dict.get.return_value = sentinel.DEFAULT736 self.assertEqual(wrapped_dict.get('foo'), 'bar')738 self.assertEqual(wrapped_dict.get('baz'), None)739 self.assertIsInstance(wrapped_dict['baz'], MagicMock)[all …]