Пример #1
0
def test_file_error():
    """test file error"""
    mongo_db_access = MongoDBAccess({}, "DEBUG")
    assert not mongo_db_access.status()
Пример #2
0
def test_error():
    """test_error"""
    mongo_db_access_error = MongoDBAccess(CONFIG_ERROR, "DEBUG")

    assert not mongo_db_access_error.status()
Пример #3
0
def test_ok():
    """test_ok"""
    mongo_db_access_ok = MongoDBAccess(CONFIG, "DEBUG")

    assert mongo_db_access_ok.status()