@@ -21,30 +21,30 @@ def check_method(self, method):
21
21
if method == self ._invokedMethod :
22
22
return
23
23
else :
24
- raise ValueError ("Method '{}' is not invoked. (Invoked method \
25
- is '{}'.)") .format (method , self_invokedMethod )
24
+ raise ValueError ("Method '{}' is not invoked. (Invoked method "
25
+ " is '{}'.)" .format (method , self . _invokedMethod ) )
26
26
27
27
def check_parameters (self , parameters , method_name ):
28
28
if parameters is None :
29
29
return len (self ._parameters ) == 0
30
30
if len (parameters ) != len (self ._parameters ):
31
- raise ValueError ("Wrong number of parameters for method '{}'. \
32
- Found: {}. Expected {}") .format (
31
+ raise ValueError ("Wrong number of parameters for method '{}'. "
32
+ " Found: {}. Expected {}" .format (
33
33
method_name ,
34
34
len (self ._parameters ),
35
- len (parameters ))
35
+ len (parameters )))
36
36
for key in parameters :
37
37
if key in self ._parameters :
38
38
# check value
39
39
if self ._parameters [key ] != parameters [key ]:
40
- raise ValueError ("Wrong '{}' parameter \
41
- value for method '{}'. \
42
- Found:'{}'. Expected:'{}'") .format (
40
+ raise ValueError ("Wrong '{}' parameter "
41
+ " value for method '{}'. "
42
+ " Found:'{}'. Expected:'{}'" .format (
43
43
method_name ,
44
44
key ,
45
45
self ._parameters [key ],
46
- parameters [key ])
46
+ parameters [key ]))
47
47
else :
48
- raise ValueError ("Parameter '%s ' not found in method '%s'" ,
49
- (str (key ), method_name ))
48
+ raise ValueError ("Parameter '{} ' not found in method '{}'"
49
+ . format (str (key ), method_name ))
50
50
return True
0 commit comments