ratingslib.utils.tests.test_methods module

This module contains the unit tests for utils package

class TestUtilsMethods(methodName='runTest')

Bases: TestCase

A class to test functions from utils.methods module The results are based on the filename (FILENAME_EPL_2018_2019_20_GAMES) which contains the first two match-weeks of the English Premier League soccer championship during the season 2018-2019

test_parse_pairs_data()

Test the parsing procedure of games data, Includes 2 tests: 1. test the total number of teams 2. test the DataFrame that contains team names under the column ‘Item’

test_create_items_dict()

Test the correctness of teams dictionary