ratingslib.app_movies.tests.test_preparedata module

class TestPrepareData(methodName='runTest')

Bases: TestCase

A class to test functions from ratingslib.app_movies.preparedata module. The results are based on the filename (FILENAME_MOVIES_EXAMPLE) which contains a small example where 5 users rate 3 movies (1-5 scale, 0 means that the user does not rate the movie).

test_movie_movie_matrix()

Test if user-movie matrix is converted to movie-movie matrix correct. We consider that a hypothetical mathup between two movies exists if at least one user has rated both movies.