def test_evaluate_average_accuracy_nn():
    """Test evaluate average accuracy for neural network"""
    classifier = ReviewClassifier('nn')
    average = classifier.evaluate_average_accuracy('test-reviews.csv')
    assert average > 0
    assert average < 100
    os.remove('output.log')
def test_evaluate_average_accuracy_rf():
    """Test evaluate average accuracy for random forest"""
    classifier = ReviewClassifier('rf')
    average = classifier.evaluate_average_accuracy('test-reviews.csv')
    assert average > 0
    assert average < 100
    os.remove('output.log')
def test_evaluate_average_accuracy_svm():
    """Test evaluate average accuracy for support vector machine"""
    classifier = ReviewClassifier('svm')
    average = classifier.evaluate_average_accuracy('test-reviews.csv')
    assert average > 0
    assert average < 100
    os.remove('output.log')
def test_evaluate_average_accuracy_nb():
    """Test evaluate average accuracy for naive bayes"""
    classifier = ReviewClassifier('nb')
    average = classifier.evaluate_average_accuracy('test-reviews.csv')
    assert average > 0
    assert average < 100
    os.remove('output.log')