cirq.testing.assert_has_diagram

Determines if a given circuit has the desired text diagram.

actual The circuit that was actually computed by some process.
desired The desired text diagram as a string. Newlines at the beginning and whitespace at the end are ignored.
**kwargs Keyword arguments to be passed to actual.to_text_diagram().