Here are the examples of the python api mock.sentinel.methods taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
3
Source : test_model.py
with Apache License 2.0
from googleapis
with Apache License 2.0
from googleapis
def test__find_methods_cached(self):
SomeProperty = self._property_subtype()
# Set cache
methods = mock.sentinel.methods
key = "{}.{}".format(SomeProperty.__module__, SomeProperty.__name__)
model.Property._FIND_METHODS_CACHE = {key: {("IN", "find_me"): methods}}
assert SomeProperty._find_methods("IN", "find_me") is methods
def test__find_methods_cached_reverse(self):