def METHOD_NAME(self, mock_connect):
    cnx, query = connect_and_execute_query()
    spans_list = self.memory_exporter.get_finished_spans()
    self.assertEqual(len(spans_list), 0)
    cnx = MySQLInstrumentor().instrument_connection(cnx)
    cursor = cnx.cursor()
    cursor.execute(query)
    spans_list = self.memory_exporter.get_finished_spans()
    self.assertEqual(len(spans_list), 1)