<commit_before>import unittest
import env

from src.ConnectionList import ConnectionList 
from src.CityList import CityList 

#Check one city length as sanity check
class TestNumConnectionsMontreal(unittest.TestCase):
    def runTest(self):
        self.assertEqual(len(ConnectionList["Montreal"]), 3)

#Check each key of connection is a valid city entry, catch typos
class TestAllKeysAreCities(unittest.TestCase):
    def runTest(self):
        for key in ConnectionList:
            self.assertTrue(key in CityList)

#Check each item in array value of connection is a valid city entry, catch typos
class TestAllValuesAreCities(unittest.TestCase):
    def runTest(self):
        for key in ConnectionList:
            for value in ConnectionList[key]:
                self.assertTrue(value in CityList, "City " + value + " not in City List")

#Every city must be connected at least once
class TestAllCitiesAreInConnection(unittest.TestCase):
    def runTest(self):
        for key in CityList:
            self.assertTrue(key in ConnectionList)

#For all connections if from city a to city b connects,
#Then from city b to city a should also connect
class TestAllConnectionsBidirectional(unittest.TestCase):
    def runTest(self):
        #TODO this test.
        self.assertTrue(False)<commit_msg>Add unit test<commit_after>import unittest
import env

from src.ConnectionList import ConnectionList 
from src.CityList import CityList 

#Check one city length as sanity check
class TestNumConnectionsMontreal(unittest.TestCase):
    def runTest(self):
        self.assertEqual(len(ConnectionList["Montreal"]), 3)

#Check each key of connection is a valid city entry, catch typos
class TestAllKeysAreCities(unittest.TestCase):
    def runTest(self):
        for key in ConnectionList:
            self.assertTrue(key in CityList)

#Check each item in array value of connection is a valid city entry, catch typos
class TestAllValuesAreCities(unittest.TestCase):
    def runTest(self):
        for key in ConnectionList:
            for value in ConnectionList[key]:
                self.assertTrue(value in CityList, "City " + value + " not in City List")

#Every city must be connected at least once
class TestAllCitiesAreInConnection(unittest.TestCase):
    def runTest(self):
        for key in CityList:
            self.assertTrue(key in ConnectionList)


#No city should connect to itself
class TestNoCityConnectsToSelf(unittest.TestCase):
    def runTest(self):
        for key in CityList:
            for value in ConnectionList[key]:
                self.assertNotEqual(key, value)

#For all connections if from city a to city b connects,
#Then from city b to city a should also connect
class TestAllConnectionsBidirectional(unittest.TestCase):
    def runTest(self):
        #TODO this test.
        self.assertTrue(False)
{'fraction_non_alphanumeric': 0.066407629812787, 'fraction_numerical': 0.0007064641469445425, 'mean_word_length': 3.5751211631663975, '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': '5909537', 'n_tokens_mistral': 765, 'n_tokens_neox': 757, 'n_words': 285}