ratingslib.app_sports.tests.test_methods module
Module for test methods module
- class TestMethods(methodName='runTest')
Bases:
TestCase
A class to test functions from
ratingslib.app_sports.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_calc_predictions()
Test the prediction procedure according to rating values. The logic of prediction is that a higher rating is preferred than the lower rating. For example in a match between teamA and teamB with ratingA and ratingB respectively, if ratingA > ratingB then prediction of the winner is teamA if ratingA < ratingB then prediction of the winner is teamB if ratingA = ratingB then prediction is the Draw.