testing functionality of python HTTP requests lib and raise_for_status