Change python asserts to unittest asserts
Merge pull request #14244 from rallytime/fix_cache_tests

Change python asserts to unittest asserts