@@ -23,7 +23,8 @@ def setUp(self):
2323
2424 def test_allocate (self ):
2525 self .client .call = Mock (return_value = 2 )
26- assert oca .Image .allocate (self .client , IMAGE_TEMPLATE , DEFAULT_IMG_DATASTORE ) == 2
26+ assert oca .Image .allocate (
27+ self .client , IMAGE_TEMPLATE , DEFAULT_IMG_DATASTORE ) == 2
2728
2829 def test_enable (self ):
2930 self .client .call = Mock (return_value = '' )
@@ -74,7 +75,8 @@ def test_states(self):
7475 h = oca .Image ('<IMAGE><ID>2</ID><STATE>%s</STATE></IMAGE>' % i ,
7576 self .client )
7677 assert h .str_state == oca .Image .IMAGE_STATES [i ]
77- short_image_state = oca .Image .SHORT_IMAGE_STATES [oca .Image .IMAGE_STATES [i ]]
78+ short_image_state = oca .Image .SHORT_IMAGE_STATES [
79+ oca .Image .IMAGE_STATES [i ]]
7880 assert h .short_state == short_image_state
7981
8082 def test_repr (self ):
@@ -86,7 +88,8 @@ def test_types(self):
8688 h = oca .Image ('<IMAGE><ID>2</ID><TYPE>%s</TYPE></IMAGE>' % i ,
8789 self .client )
8890 assert h .str_type == oca .Image .IMAGE_TYPES [i ]
89- short_image_type = oca .Image .SHORT_IMAGE_TYPES [oca .Image .IMAGE_TYPES [i ]]
91+ short_image_type = oca .Image .SHORT_IMAGE_TYPES [
92+ oca .Image .IMAGE_TYPES [i ]]
9093 assert h .short_type == short_image_type
9194
9295 def test_template (self ):
@@ -105,5 +108,5 @@ def test_chmod(self):
105108 self .client .call = Mock (return_value = '' )
106109 h = oca .Image (self .xml , self .client )
107110 h .chmod (1 , 0 , 0 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 )
108- self .client .call .assert_called_once_with ('image.chmod' ,
109- '1' , 1 , 0 , 0 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 )
111+ self .client .call .assert_called_once_with (
112+ 'image.chmod' , '1' , 1 , 0 , 0 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 )
0 commit comments