<commit_before>import unittest
from api import message, plugin, bot
from plugins import botutils

class TestBotutilsSuite(unittest.TestCase):

    def testSrcutilsImport(self):
        result = botutils.onInit(__import__('api.plugin'))
        self.assertEqual(type(result), plugin.plugin)


    def testBotutilsPlugins(self):
        result = botutils.onInit(__import__('api.plugin'))
        bot.bot.plugins.append(result)
        for command in result.commands:
            bot.bot.commands.append(command)
            
        msg = message.message(body="")
        msg.command = "plugins"
        result = botutils.onCommand(msg)
        self.assertEqual(type(result), type(msg))


    def testBotutilsCommands(self):
        result = botutils.onInit(__import__('api.plugin'))
        bot.bot.plugins.append(result)
        for command in result.commands:
            bot.bot.commands.append(command)

        bot.bot.plugins.append()
        msg = message.message(body="")
        msg.command = "commands"
        result = botutils.onCommand(msg)
        self.assertEqual(type(result), type(msg))

    def testBotutilsHelp(self):
        result = botutils.onInit(__import__('api.plugin'))
        bot.bot.plugins.append(result)
        for command in result.commands:
            bot.bot.commands.append(command)

        msg = message.message(body="")
        msg.command = "help"
        result = botutils.onCommand(msg)
        self.assertEqual(type(result), type(msg))

    def testBotutilsInfo(self):
        msg = message.message(body="")<commit_msg>Remove unneeded line in botutils unit test<commit_after>import unittest
from api import message, plugin, bot
from plugins import botutils

class TestBotutilsSuite(unittest.TestCase):

    def testSrcutilsImport(self):
        result = botutils.onInit(__import__('api.plugin'))
        self.assertEqual(type(result), plugin.plugin)


    def testBotutilsPlugins(self):
        result = botutils.onInit(__import__('api.plugin'))
        bot.bot.plugins.append(result)
        for command in result.commands:
            bot.bot.commands.append(command)

        msg = message.message(body="")
        msg.command = "plugins"
        result = botutils.onCommand(msg)
        self.assertEqual(type(result), type(msg))


    def testBotutilsCommands(self):
        result = botutils.onInit(__import__('api.plugin'))
        bot.bot.plugins.append(result)
        for command in result.commands:
            bot.bot.commands.append(command)

        msg = message.message(body="")
        msg.command = "commands"
        result = botutils.onCommand(msg)
        self.assertEqual(type(result), type(msg))

    def testBotutilsHelp(self):
        result = botutils.onInit(__import__('api.plugin'))
        bot.bot.plugins.append(result)
        for command in result.commands:
            bot.bot.commands.append(command)

        msg = message.message(body="")
        msg.command = "help"
        result = botutils.onCommand(msg)
        self.assertEqual(type(result), type(msg))

    def testBotutilsInfo(self):
        msg = message.message(body="")
{'fraction_non_alphanumeric': 0.1167953667953668, 'fraction_numerical': 0.0, 'mean_word_length': 2.786845310596833, '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': '7212126', 'n_tokens_mistral': 881, 'n_tokens_neox': 862, 'n_words': 162}