<commit_before>#!/usr/bin/env python
#
# boards/tests.py
#
"""
Test board factory code.

Unit test for the board factory code.

by: <NAME>

email: <EMAIL>
"""
__docformat__ = "restructuredtext en"


import unittest

from embedcore.boards import BoardsException
from embedcore.boards.boardfactory import BoardFactory


class TestBoardFactory(unittest.TestCase):
    """
    Tests for the board factory.
    """
    

    def __init__(self, name):
        super(TestBoardFactory, self).__init__(name)

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def test__init__(self):
        try:
            bf = BoardFactory()
        except Exception as e:
            self.assertRaises(BoardsException)
        else:
            self.assertNotEqual(bf, None)


if __name__ == '__main__':
    unittest.main()<commit_msg>Added some comments indicating what the tests were fo.<commit_after>#!/usr/bin/env python
#
# boards/tests.py
#
"""
Test board factory code.

Unit test for the board factory code.

by: <NAME>

email: <EMAIL>
"""
__docformat__ = "restructuredtext en"


import unittest

from embedcore.boards import BoardsException
from embedcore.boards.boardfactory import BoardFactory


class TestBoardFactory(unittest.TestCase):
    """
    Tests for the board factory.
    """
    

    def __init__(self, name):
        super(TestBoardFactory, self).__init__(name)

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def test__init__(self):
        try:
            bf = BoardFactory()
        except Exception as e:
            # This tests the condition where no boards are found.
            self.assertRaises(BoardsException)
        else:
            # This tests that an implimented boards was found.
            self.assertNotEqual(bf, None)


if __name__ == '__main__':
    unittest.main()
{'fraction_non_alphanumeric': 0.09351351351351352, 'fraction_numerical': 0.0, 'mean_word_length': 2.6508875739644973, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '207532', 'n_tokens_mistral': 558, 'n_tokens_neox': 539, 'n_words': 156}