Home
last modified time | relevance | path

Searched refs:PropertyMock (Results 1 – 11 of 11) sorted by relevance

/external/chromium-trace/catapult/devil/devil/android/sdk/
Dshared_prefs_test.py103 type(self.device).build_version_sdk = mock.PropertyMock(
155 type(self.device).build_version_sdk = mock.PropertyMock(
188 type(self.device).build_version_sdk = mock.PropertyMock(
194 type(self.device).build_version_sdk = mock.PropertyMock(
/external/chromium-trace/catapult/devil/devil/android/tools/
Dsystem_app_test.py35 type(mock_device).build_version_sdk = mock.PropertyMock(
/external/chromium-trace/catapult/devil/devil/utils/
Dmock_calls.py114 type(target), attribute, new_callable=mock.PropertyMock, **kwargs)
/external/python/mock/mock/tests/
Dtesthelpers.py10 Mock, ANY, patch, PropertyMock
946 p = patch('%s.SomeClass.one' % __name__, new_callable=PropertyMock)
965 p = PropertyMock()
971 self.assertNotIsInstance(returned, PropertyMock)
/external/python/cpython3/Lib/unittest/test/testmock/
Dtesthelpers.py8 Mock, ANY, _CallList, patch, PropertyMock
977 p = patch('%s.SomeClass.one' % __name__, new_callable=PropertyMock)
996 p = PropertyMock()
1002 self.assertNotIsInstance(returned, PropertyMock)
/external/tensorflow/tensorflow/contrib/learn/python/learn/
Dexperiment_test.py739 type(mock_estimator).model_dir = test.mock.PropertyMock(
763 type(mock_estimator).model_dir = test.mock.PropertyMock(
788 type(mock_estimator).model_dir = test.mock.PropertyMock(
/external/python/cpython3/Doc/library/
Dunittest.mock.rst783 .. class:: PropertyMock(*args, **kwargs)
786 :class:`PropertyMock` provides :meth:`__get__` and :meth:`__set__` methods
789 Fetching a :class:`PropertyMock` instance from an object calls the mock, with
800 >>> with patch('__main__.Foo.foo', new_callable=PropertyMock) as mock_foo:
811 :class:`PropertyMock` to a mock object. Instead you can attach it to the mock type
815 >>> p = PropertyMock(return_value=3)
/external/pdfium/third_party/pymock/
Dmock.py2352 class PropertyMock(Mock): class
/external/python/cpython2/Lib/test/
D_mock_backport.py2343 class PropertyMock(Mock): class
/external/python/cpython3/Lib/unittest/
Dmock.py2424 class PropertyMock(Mock): class
/external/python/mock/mock/
Dmock.py2541 class PropertyMock(Mock): class