testing/unexpected_passes_common/data_types.py
def AppliesToResult(self, result):
    """Checks whether this expectation should have applied to |result|.

    An expectation applies to a result if the test names match (including
    wildcard expansion) and the expectation's tags are a subset of the result's
    tags.

    Args:
      result: A Result instance to check against.

    Returns:
      True if |self| applies to |result|, otherwise False.
    """
    assert isinstance(result, BaseResult)
    return (self._comp(result.test) and self.tags <= result.tags)
Checks whether this expectation should have applied to |result|.

    An expectation applies to a result if the test names match (including
    wildcard expansion) and the expectation's tags are a subset of the result's
    tags.

    Args:
      result: A Result instance to check against.

    Returns:
      True if |self| applies to |result|, otherwise False.
    
Checks whether this expectation should have applied to |result|.
An expectation applies to a result if the test names match (including
wildcard expansion) and the expectation's tags are a subset of the result's
tags.
Checks whether this expectation should have applied to |result| . An expectation applies to a result if the test names match ( including wildcard expansion ) and the expectation ' s tags are a subset of the result ' s tags .
def AppliesToResult(self, result):
    assert isinstance(result, BaseResult)
    return (self._comp(result.test) and self.tags <= result.tags)
def AppliesToResult ( self , result ) : assert isinstance ( result , BaseResult ) return ( self . _comp ( result . test ) and self . tags <= result . tags )
Checks whether this expectation should have applied to |result|.
Checks whether this expectation should have applied to |result| .
"""Checks whether this expectation should have applied to |result|.

    An expectation applies to a result if the test names match (including
    wildcard expansion) and the expectation's tags are a subset of the result's
    tags.

    Args:
      result: A Result instance to check against.

    Returns:
      True if |self| applies to |result|, otherwise False.
    """
True if |self| applies to |result|, otherwise False.
True if |self| applies to |result| otherwise False .
self
result
A Result instance to check against.
A Result instance to check against .