def METHOD_NAME(self):
    """Test whether we get only valid tokens."""
    qasm = Qasm(self.qasm_file_path)
    for token in qasm.generate_tokens():
        self.assertTrue(isinstance(token, ply.lex.LexToken))