You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by pq...@apache.org on 2010/01/04 23:49:04 UTC

svn commit: r895816 - /incubator/libcloud/trunk/test/test_slicehost.py

Author: pquerna
Date: Mon Jan  4 22:49:03 2010
New Revision: 895816

URL: http://svn.apache.org/viewvc?rev=895816&view=rev
Log:
use e.args instead of e.message

Modified:
    incubator/libcloud/trunk/test/test_slicehost.py

Modified: incubator/libcloud/trunk/test/test_slicehost.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/test/test_slicehost.py?rev=895816&r1=895815&r2=895816&view=diff
==============================================================================
--- incubator/libcloud/trunk/test/test_slicehost.py (original)
+++ incubator/libcloud/trunk/test/test_slicehost.py Mon Jan  4 22:49:03 2010
@@ -45,7 +45,7 @@
         try:
             ret = self.driver.list_nodes()
         except Exception, e:
-            self.assertEqual(e.message, 'HTTP Basic: Access denied.')
+            self.assertEqual(e.args[0], 'HTTP Basic: Access denied.')
         else:
             self.fail('test should have thrown')
 
@@ -76,7 +76,7 @@
         try:
             ret = self.driver.reboot_node(node)
         except Exception, e:
-            self.assertEqual(e.message, 'Permission denied')
+            self.assertEqual(e.args[0], 'Permission denied')
         else:
             self.fail('test should have thrown')