Exemple #1
0
 def test_setup_activation(self):
     db = SetupDb(data_folder=self.data_folder, db_file=self.db_name)
     db.add_setup('dummy')
     self.assertNotEqual(db.setup_name, 'dummy')
     db.activate_setup('dummy')
     self.assertEqual(db.setup_name, 'dummy')
     db.close()
Exemple #2
0
 def test_presence_of_new_activated_setup_in_list(self):
     db = SetupDb(data_folder=self.data_folder, db_file=self.db_name)
     db.add_setup('dummy')
     db.activate_setup('dummy')
     flag = False
     for setup in db.setup_list:
         if setup[0] == db.active_setup_id:
             flag = True
             break
     self.assertTrue(flag)
     db.close()