Home
last modified time | relevance | path

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

/external/chromium-trace/catapult/devil/devil/android/sdk/
Dshared_prefs_test.py103 type(self.device).build_version_sdk = mock.PropertyMock(
135 type(self.device).build_version_sdk = mock.PropertyMock(
161 type(self.device).build_version_sdk = mock.PropertyMock(
194 type(self.device).build_version_sdk = mock.PropertyMock(
201 type(self.device).build_version_sdk = mock.PropertyMock(
/external/chromium-trace/catapult/devil/devil/android/tools/
Dsystem_app_test.py48 type(mock_device).build_version_sdk = mock.PropertyMock(
/external/chromium-trace/catapult/devil/devil/utils/
Dmock_calls.py115 type(target), attribute, new_callable=mock.PropertyMock, **kwargs)
/external/python/cpython3/Lib/unittest/test/testmock/
Dtesthelpers.py8 Mock, ANY, _CallList, patch, PropertyMock, _callable
1063 p = patch('%s.SomeClass.one' % __name__, new_callable=PropertyMock)
1082 p = PropertyMock()
1088 self.assertNotIsInstance(returned, PropertyMock)
/external/python/mock/mock/tests/
Dtesthelpers.py14 Mock, ANY, patch, PropertyMock
1123 p = patch('%s.SomeClass.one' % __name__, new_callable=PropertyMock)
1142 p = PropertyMock()
1148 self.assertNotIsInstance(returned, PropertyMock)
/external/python/cpython3/Doc/library/
Dunittest.mock.rst208 from unittest.mock import patch, call, Mock, MagicMock, PropertyMock, AsyncMock
819 .. class:: PropertyMock(*args, **kwargs)
822 :class:`PropertyMock` provides :meth:`__get__` and :meth:`__set__` methods
825 Fetching a :class:`PropertyMock` instance from an object calls the mock, with
836 >>> with patch('__main__.Foo.foo', new_callable=PropertyMock) as mock_foo:
847 :class:`PropertyMock` to a mock object. Instead you can attach it to the mock type
851 >>> p = PropertyMock(return_value=3)
/external/python/cpython2/Lib/test/
D_mock_backport.py2343 class PropertyMock(Mock): class
/external/pdfium/third_party/pymock/
Dmock.py2352 class PropertyMock(Mock): class
/external/python/mock/mock/
Dmock.py2582 class PropertyMock(Mock): class
/external/python/cpython3/Lib/unittest/
Dmock.py2836 class PropertyMock(Mock): class