test/python/test_extensions_standard.py
def assertQasm(self, qasm_txt, offset=1):
        """
        Assert the QASM representation of the circuit self.circuit includes
        the text qasm_txt in the right position (which can be adjusted by
        offset)

        Args:
            qasm_txt (str): a string with QASM code
            offset (int): the offset in which qasm_txt should be found.
        """
        circuit = self.circuit
        c_txt = len(qasm_txt)
        self.assertIn('\n' + qasm_txt + '\n', circuit.qasm())
        # pylint: disable=no-member
        self.assertEqual(self.c_header + c_txt + offset, len(circuit.qasm()))

        Assert the QASM representation of the circuit self.circuit includes
        the text qasm_txt in the right position (which can be adjusted by
        offset)

        Args:
            qasm_txt (str): a string with QASM code
            offset (int): the offset in which qasm_txt should be found.
        
Assert the QASM representation of the circuit self.circuit includes
the text qasm_txt in the right position (which can be adjusted by
offset)
Assert the QASM representation of the circuit self . circuit includes the text qasm_txt in the right position ( which can be adjusted by offset )
def assertQasm(self, qasm_txt, offset=1):
        circuit = self.circuit
        c_txt = len(qasm_txt)
        self.assertIn('\n' + qasm_txt + '\n', circuit.qasm())
        self.assertEqual(self.c_header + c_txt + offset, len(circuit.qasm()))
def assertQasm ( self , qasm_txt , offset = 1 ) : circuit = self . circuit c_txt = len ( qasm_txt ) self . assertIn ( '\n' + qasm_txt + '\n' , circuit . qasm ( ) ) self . assertEqual ( self . c_header + c_txt + offset , len ( circuit . qasm ( ) ) )
Assert the QASM representation of the circuit self.circuit includes
the text qasm_txt in the right position (which can be adjusted by
offset)
Assert the QASM representation of the circuit self . circuit includes the text qasm_txt in the right position ( which can be adjusted by offset )
"""
        Assert the QASM representation of the circuit self.circuit includes
        the text qasm_txt in the right position (which can be adjusted by
        offset)

        Args:
            qasm_txt (str): a string with QASM code
            offset (int): the offset in which qasm_txt should be found.
        """ # pylint: disable=no-member
self
qasm_txt
a string with QASM code
a string with QASM code
offset
the offset in which qasm_txt should be found.
the offset in which qasm_txt should be found .