<commit_before>import sys
sys.path.insert(0, '../../')

from pyalertme import *
import unittest
from mock_serial import Serial

class TestBase(unittest.TestCase):

    def setUp(self):
        self.serialObj = Serial()
        self.deviceObj = Base()
        self.deviceObj.start(self.serialObj)

    def tearDown(self):
        self.deviceObj.halt()

    def test_pretty_mac(self):
        result = Base.pretty_mac(b'\x00\ro\x00\x03\xbb\xb9\xf8')
        expected = '00:0d:6f:00:03:bb:b9:f8'<commit_msg>Update test_base.py<commit_after>import sys
sys.path.insert(0, '../../')

from pyalertme import *
import unittest
from mock_serial import Serial

class TestBase(unittest.TestCase):

    def setUp(self):
        self.ser = Serial()
        self.device_obj = Base()
        self.device_obj.start(self.ser)

    def tearDown(self):
        self.device_obj.halt()

    def test_pretty_mac(self):
        result = Base.pretty_mac(b'\x00\ro\x00\x03\xbb\xb9\xf8')
        expected = '00:0d:6f:00:03:bb:b9:f8'
{'fraction_non_alphanumeric': 0.14029850746268657, 'fraction_numerical': 0.03781094527363184, 'mean_word_length': 3.00796812749004, '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': '95492', 'n_tokens_mistral': 381, 'n_tokens_neox': 360, 'n_words': 60}