Beispiel #1
0
def test_dao_db_create_common_bad_db_name(test_configuration):
    """ db_create_common() should return True on failure. """
    DUT = DAO()
    _database = (test_configuration.RAMSTK_COM_BACKEND + ':/' + TEMPDIR +
                 '/_ramstk_common_db.ramstk')

    assert DUT.db_create_common(_database, test=True)
Beispiel #2
0
def test_dao_db_create_common(test_configuration):
    """ db_create_common() should return False on success. """
    DUT = DAO()
    _database = (test_configuration.RAMSTK_COM_BACKEND + ':///' + TEMPDIR +
                 '/_ramstk_common_db.ramstk')

    assert not DUT.db_create_common(_database, test=True)

    os.remove(TEMPDIR + '/_ramstk_common_db.ramstk')