checking for 301 and 302 in test_localization.py