<commit_before>import unittest
from bothound_live_sniffer import BothoundLiveSniffer
from apache_log_muncher import parse_line

class BothoundLiveSnifferTestCase(unittest.TestCase):
    def setUp(self):
        conf_options = {'sniffers':{}}
        self.sniffer = BothoundLiveSniffer(conf_options)

    def tearDown(self):
        self.sniffer = None

    def test_process_decoded_message(self):
        print "Calling _process_decoded_message"
        f = open('logfetcher.log', 'r')
        for line in f:
            message = parse_line(line)
            self.sniffer._clusterify(message)
        self.assert_(True);<commit_msg>Unit Test minor fix.<commit_after>import unittest
from bothound_live_sniffer import BothoundLiveSniffer
from util.apache_log_muncher import parse_line

class BothoundLiveSnifferTestCase(unittest.TestCase):
    def setUp(self):
        conf_options = {'sniffers':{}}
        self.sniffer = BothoundLiveSniffer(conf_options)

    def tearDown(self):
        self.sniffer = None

    def test_clusterify(self):
        print "Calling _clusterify"
        f = open('logfetcher.log', 'r')
        for line in f:
            message = parse_line(line)
            self.assert_(self.sniffer._clusterify(message));
{'fraction_non_alphanumeric': 0.08716707021791767, 'fraction_numerical': 0.0, 'mean_word_length': 3.3508771929824563, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2257472', 'n_tokens_mistral': 375, 'n_tokens_neox': 367, 'n_words': 77}