mock.sentinel.predicate

Here are the examples of the python api mock.sentinel.predicate taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

3 Examples 7

3 Source : test_query.py
with Apache License 2.0
from googleapis

    def test_constructor():
        predicate = mock.sentinel.predicate
        post_filter_node = query_module.PostFilterNode(predicate)
        assert post_filter_node.predicate is predicate

    @staticmethod

3 Source : test_query.py
with Apache License 2.0
from googleapis

    def test__to_filter_post():
        predicate = mock.sentinel.predicate
        post_filter_node = query_module.PostFilterNode(predicate)
        assert post_filter_node._to_filter(post=True) is predicate

    @staticmethod

3 Source : test_query.py
with Apache License 2.0
from googleapis

    def test__to_filter():
        predicate = mock.sentinel.predicate
        post_filter_node = query_module.PostFilterNode(predicate)
        assert post_filter_node._to_filter() is None


class Test_BooleanClauses: