def dbfill(user_num, sentence_num):
    '''
    Fills the database with languages, users and sentences
    '''
    atcmodel()
    add_all_languages()
    add_users(user_num)
    add_sentences(sentence_num)
 def test_atcmodel_exists(self):
     '''
     Test if the database is reused if it already exists
     '''
     db.create_all()
     existing_dbname = self.dbname
     atcmodel()
     self.assertTrue(isSQLite3(existing_dbname))
     self.assertEqual(existing_dbname, self.dbname)
 def test_atcmodel_new(self):
     '''
     Test if database is created when it doesn't exist
     '''
     atcmodel()
     self.assertTrue(isSQLite3(self.dbname))