Index: functional/downloads.py |
=================================================================== |
--- functional/downloads.py (revision 71499) |
+++ functional/downloads.py (working copy) |
@@ -152,7 +152,10 @@ |
# Using WaitUntil is the only resort. |
self.NavigateToURL(file_url, 1, 0) |
self.assertTrue(self.WaitUntil(lambda: os.path.exists(downloaded_pkg))) |
- self.assertTrue(self._EqualFileContents(file_path, downloaded_pkg)) |
+ self.assertTrue(self._EqualFileContents(file_path, downloaded_pkg), |
+ msg='%s (size %d) and %s (size %d) do not match' % ( |
+ file_path, os.path.getsize(file_path), |
+ downloaded_pkg, os.path.getsize(downloaded_pkg))) |
self.assertTrue(self.IsDownloadShelfVisible(1)) |
def testSaveDangerousFile(self): |