<commit_before>from sys import path
path.append('../src')

from train_route import TrainRoute

instance = TrainRoute("Vil'no", '23:19', '09:29', '49', "VIL'NO PARMA", '5/09-3/10/2015 DAILY (EXCEPT 6,7,8,9,10,11/09/2015)')
assert instance.departure_station == "Vil'no"
assert instance.departure_time == '23:19'
assert instance.arrival_time == '09:29'
assert instance.number_train == '49'
assert instance.route == "Vil'no Parma"
assert instance.periodicity == '5/09-3/10/2015 daily (except 6,7,8,9,10,11/09/2015)'
<commit_msg>#7 converted unit test for TrainRoute<commit_after>from sys import path
path.append('../src')

import unittest
from train_route import TrainRoute

class TestTrainRoute(unittest.TestCase):
	def test_constructor(self):
		train_route = TrainRoute("Vil'no", '23:19', '09:29', '49', "VIL'NO PARMA", '5/09-3/10/2015 DAILY (EXCEPT 6,7,8,9,10,11/09/2015)')

		self.assertEqual("Vil'no", train_route.departure_station)
		self.assertEqual('23:19', train_route.departure_time)
		self.assertEqual('09:29', train_route.arrival_time)
		self.assertEqual('49', train_route.number_train)
		self.assertEqual("Vil'no Parma", train_route.route)
		self.assertEqual('5/09-3/10/2015 daily (except 6,7,8,9,10,11/09/2015)', train_route.periodicity)

if __name__ == '__main__':
	unittest.main()

{'fraction_non_alphanumeric': 0.168600154679041, 'fraction_numerical': 0.10595514307811292, 'mean_word_length': 6.3107344632768365, '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': '2852545', 'n_tokens_mistral': 567, 'n_tokens_neox': 483, 'n_words': 93}