urllib2 raises an exception if an HTTP request produces an error code, making the test fail earlier.
Attach a file by drag & drop or click to upload