Home
last modified time | relevance | path

Searched refs:wrapped_dict (Results 1 – 2 of 2) sorted by relevance

/external/tensorflow/tensorflow/python/training/tracking/
Ddata_structures.py769 def __init__(self, wrapped_dict=None): argument
770 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)
/external/python/cpython3/Lib/unittest/test/testmock/
Dtestmock.py723 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.DEFAULT
736 self.assertEqual(wrapped_dict.get('foo'), 'bar')
738 self.assertEqual(wrapped_dict.get('baz'), None)
739 self.assertIsInstance(wrapped_dict['baz'], MagicMock)
[all …]