def METHOD_NAME(self, mock_connect):
    MySQLClientInstrumentor().instrument()
    cnx = MySQLdb.connect(database="test")
    query = "SELECT * FROM test"
    cursor = cnx.cursor()
    cursor.execute(query)
    spans_list = self.memory_exporter.get_finished_spans()
    self.assertEqual(len(spans_list), 1)
    self.memory_exporter.clear()
    cnx = MySQLClientInstrumentor().uninstrument_connection(cnx)
    cursor = cnx.cursor()
    cursor.execute(query)
    spans_list = self.memory_exporter.get_finished_spans()
    self.assertEqual(len(spans_list), 0)