text: import sys
  import unittest
  import sqlite3
  
  sys.path.append("..")
  from DAO import DAO
  from Rola import Rola
  
  class TestDataBase(unittest.TestCase):
  
      def connect_database(self):
          self.dao = DAO()
          connection = self.dao.connect_database()
          conn = connection[0]
          cursor = connection[1]
          return [conn, cursor]
  
      def test_insert(self):
          connection = self.connect_database()
          conn = connection[0]
          cursor = connection[1]
          rola = Rola()
          rola.set_title('Title test')
          rola.set_genre('Genre test')
          rola.set_performer_name('Performer test')
          self.dao.insert_catalog(rola,cursor,conn)
          connection = self.connect_database()
          conn = connection[0]
          cursor = connection[1]
          cursor.execute("SELECT title FROM rolas")
          title = cursor.fetchone()[0]
          self.assertEqual(str(title), 'Title test')
          cursor.execute("SELECT genre FROM rolas")
          genre = cursor.fetchone()[0]
          self.assertEqual(str(genre), 'Genre test')
          cursor.execute("SELECT name FROM performers")
          performer = cursor.fetchone()[0]
          self.assertEqual(str(performer), 'Performer test')
          cursor.execute("SELECT name FROM albums")
          album = cursor.fetchone()[0]
          self.assertEqual(str(album), 'Unknown')
  
  if __name__ == '__main__':
      unittest.main(warnings='ignore')
  