@@ -371,7 +371,7 @@ def test_server_error(self):
371371 self .assertRaises (c .ClientException , c .head_account ,
372372 'http://www.tests.com' , 'asdf' )
373373 try :
374- value = c .head_account ('http://www.tests.com' , 'asdf' )
374+ c .head_account ('http://www.tests.com' , 'asdf' )
375375 except c .ClientException as e :
376376 new_body = "[first 60 chars of response] " + body [0 :60 ]
377377 self .assertEquals (e .__str__ ()[- 89 :], new_body )
@@ -394,7 +394,7 @@ def test_server_error(self):
394394 'http://www.test.com' , 'asdf' , 'asdf' ,
395395 )
396396 try :
397- value = c .head_container ('http://www.test.com' , 'asdf' , 'asdf' )
397+ c .head_container ('http://www.test.com' , 'asdf' , 'asdf' )
398398 except c .ClientException as e :
399399 self .assertEquals (e .http_response_content , body )
400400
@@ -413,7 +413,7 @@ def test_server_error(self):
413413 'http://www.test.com' , 'asdf' , 'asdf' ,
414414 )
415415 try :
416- value = c .put_container ('http://www.test.com' , 'asdf' , 'asdf' )
416+ c .put_container ('http://www.test.com' , 'asdf' , 'asdf' )
417417 except c .ClientException as e :
418418 self .assertEquals (e .http_response_content , body )
419419
@@ -501,7 +501,7 @@ def test_server_error(self):
501501 args = ('http://www.test.com' , 'asdf' , 'asdf' , 'asdf' , 'asdf' )
502502 self .assertRaises (c .ClientException , c .put_object , * args )
503503 try :
504- value = c .put_object (* args )
504+ c .put_object (* args )
505505 except c .ClientException as e :
506506 self .assertEquals (e .http_response_content , body )
507507
@@ -517,7 +517,7 @@ class TestPostObject(MockHttpTest):
517517 def test_ok (self ):
518518 c .http_connection = self .fake_http_connection (200 )
519519 args = ('http://www.test.com' , 'asdf' , 'asdf' , 'asdf' , {})
520- value = c .post_object (* args )
520+ c .post_object (* args )
521521
522522 def test_unicode_ok (self ):
523523 conn = c .http_connection (u'http://www.test.com/' )
@@ -542,7 +542,7 @@ def test_server_error(self):
542542 args = ('http://www.test.com' , 'asdf' , 'asdf' , 'asdf' , {})
543543 self .assertRaises (c .ClientException , c .post_object , * args )
544544 try :
545- value = c .post_object (* args )
545+ c .post_object (* args )
546546 except c .ClientException as e :
547547 self .assertEquals (e .http_response_content , body )
548548
@@ -551,7 +551,7 @@ class TestDeleteObject(MockHttpTest):
551551
552552 def test_ok (self ):
553553 c .http_connection = self .fake_http_connection (200 )
554- value = c .delete_object ('http://www.test.com' , 'asdf' , 'asdf' , 'asdf' )
554+ c .delete_object ('http://www.test.com' , 'asdf' , 'asdf' , 'asdf' )
555555
556556 def test_server_error (self ):
557557 c .http_connection = self .fake_http_connection (500 )
@@ -572,16 +572,16 @@ def test_instance(self):
572572 self .assertEquals (conn .retries , 5 )
573573
574574 def test_instance_kwargs (self ):
575- args = {'user' : 'ausername' ,
576- 'key' : 'secretpass' ,
577- 'authurl' : 'http://www.test.com' ,
578- 'tenant_name' : 'atenant' }
575+ args = {'user' : 'ausername' ,
576+ 'key' : 'secretpass' ,
577+ 'authurl' : 'http://www.test.com' ,
578+ 'tenant_name' : 'atenant' }
579579 conn = c .Connection (** args )
580580 self .assertEquals (type (conn ), c .Connection )
581581
582582 def test_instance_kwargs_token (self ):
583583 args = {'preauthtoken' : 'atoken123' ,
584- 'preauthurl' : 'http://www.test.com:8080/v1/AUTH_123456' }
584+ 'preauthurl' : 'http://www.test.com:8080/v1/AUTH_123456' }
585585 conn = c .Connection (** args )
586586 self .assertEquals (type (conn ), c .Connection )
587587
@@ -650,7 +650,7 @@ def swap_sleep(*args):
650650 self .assertEquals (conn .url , 'http://www.old.com' )
651651 self .assertEquals (conn .token , 'old' )
652652
653- value = conn .head_account ()
653+ conn .head_account ()
654654
655655 self .assertTrue (self .swap_sleep_called )
656656 self .assertEquals (conn .attempts , 2 )
0 commit comments