test_lib.py imported to views.py and dictionary created for partition and values. function call with dict as parameters needs to be fixed