<commit_before>import sys
import os
sys.path += [os.getcwd(), os.path.join(os.getcwd(), 'protocols')]
import unittest

import inspircd
import test_proto_common
from classes import ProtocolError

class TestInspIRCdProtocol(unittest.TestCase):
    def setUp(self):
        self.irc = test_proto_common.FakeIRC(inspircd)
        self.sdata = self.irc.serverdata
        
    def test_connect(self):
        self.irc.proto.connect(self.irc)
        initial_messages = self.irc.takeMsgs()
        commands = self.irc.takeCommands(initial_messages)<commit_msg>test_proto_inspircd: fix 'python3 -m unittest' compat<commit_after>import sys
import os
sys.path += [os.getcwd(), os.path.join(os.getcwd(), 'protocols')]
import unittest

import inspircd
from . import test_proto_common
from classes import ProtocolError

class TestInspIRCdProtocol(unittest.TestCase):
    def setUp(self):
        self.irc = test_proto_common.FakeIRC(inspircd)
        self.sdata = self.irc.serverdata
        
    def test_connect(self):
        self.irc.proto.connect(self.irc)
        initial_messages = self.irc.takeMsgs()
        commands = self.irc.takeCommands(initial_messages)
{'fraction_non_alphanumeric': 0.10303030303030303, 'fraction_numerical': 0.0008658008658008658, 'mean_word_length': 3.816666666666667, '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': '6618904', 'n_tokens_mistral': 382, 'n_tokens_neox': 373, 'n_words': 71}