chrome/test/mini_installer/process_operations.py
def VerifyProcessExpectation(expectation_name, expectation, variable_expander):
    """Verifies that a file is present or absent, throwing an AssertionError if
    the expectation is not met.

    Args:
        expectation_name: Path to the process being verified (may contain
            variables to be expanded).
        expectation: A dictionary with the following key and value:
            'running' a boolean indicating whether the process should be
                running.
        variable_expander: A VariableExpander object.

    Raises:
        AssertionError: If an expectation is not satisfied.
    """
    running_process_paths = [
        path for (_, path) in chrome_helper.GetProcessIDAndPathPairs()
    ]
    process_path = variable_expander.Expand(expectation_name)
    is_running = process_path in running_process_paths
    assert expectation['running'] == is_running, \
        ('Process %s is running' % process_path) if is_running else \
        ('Process %s is not running' % process_path)
Verifies that a file is present or absent, throwing an AssertionError if
    the expectation is not met.

    Args:
        expectation_name: Path to the process being verified (may contain
            variables to be expanded).
        expectation: A dictionary with the following key and value:
            'running' a boolean indicating whether the process should be
                running.
        variable_expander: A VariableExpander object.

    Raises:
        AssertionError: If an expectation is not satisfied.
    
Verifies that a file is present or absent, throwing an AssertionError if
the expectation is not met.
Verifies that a file is present or absent throwing an AssertionError if the expectation is not met .
def VerifyProcessExpectation(expectation_name, expectation, variable_expander):
    running_process_paths = [
        path for (_, path) in chrome_helper.GetProcessIDAndPathPairs()
    ]
    process_path = variable_expander.Expand(expectation_name)
    is_running = process_path in running_process_paths
    assert expectation['running'] == is_running, \
        ('Process %s is running' % process_path) if is_running else \
        ('Process %s is not running' % process_path)
def VerifyProcessExpectation ( expectation_name , expectation , variable_expander ) : running_process_paths = [ path for ( _ , path ) in chrome_helper . GetProcessIDAndPathPairs ( ) ] process_path = variable_expander . Expand ( expectation_name ) is_running = process_path in running_process_paths assert expectation [ 'running' ] == is_running , ( 'Process %s is running' % process_path ) if is_running else ( 'Process %s is not running' % process_path )
Verifies that a file is present or absent, throwing an AssertionError if
the expectation is not met.
Verifies that a file is present or absent throwing an AssertionError if the expectation is not met .
"""Verifies that a file is present or absent, throwing an AssertionError if
    the expectation is not met.

    Args:
        expectation_name: Path to the process being verified (may contain
            variables to be expanded).
        expectation: A dictionary with the following key and value:
            'running' a boolean indicating whether the process should be
                running.
        variable_expander: A VariableExpander object.

    Raises:
        AssertionError: If an expectation is not satisfied.
    """
If an expectation is not satisfied.
If an expectation is not satisfied .
AssertionError
expectation_name
Path to the process being verified (may contain
variables to be expanded).
Path to the process being verified ( may contain variables to be expanded ) .
expectation
A dictionary with the following key and value:
'running' a boolean indicating whether the process should be
running.
A dictionary with the following key and value : ' running ' a boolean indicating whether the process should be running .
variable_expander
A VariableExpander object.
A VariableExpander object .