File tree 2 files changed +5
-4
lines changed 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,8 @@ class TOTPProviderServerConfig:
84
84
def __init__ (self , data ):
85
85
if not isinstance (data , dict ):
86
86
raise ValueError (
87
- 'Invalid data argument in TOTPProviderServerConfig constructor: {0}' .format (data ))
87
+ 'Invalid data argument in TOTPProviderServerConfig'
88
+ 'constructor: {0}' .format (data ))
88
89
self ._data = data
89
90
90
91
@property
Original file line number Diff line number Diff line change @@ -135,22 +135,22 @@ def test_invalid_multi_factor_config_response(self):
135
135
test_config = 'invalid'
136
136
with pytest .raises (ValueError ) as excinfo :
137
137
multi_factor_config_mgt .MultiFactorServerConfig (test_config )
138
- assert str (excinfo .value ).startswith ('Invalid data argument in MultiFactorConfig '
138
+ assert str (excinfo .value ).startswith ('Invalid data argument in MultiFactorServerConfig '
139
139
' constructor: {0}' .format (test_config ))
140
140
141
141
def test_invalid_provider_config_response (self ):
142
142
test_config = 'invalid'
143
143
with pytest .raises (ValueError ) as excinfo :
144
144
multi_factor_config_mgt .MultiFactorServerConfig .ProviderServerConfig (test_config )
145
- assert str (excinfo .value ).startswith ('Invalid data argument in ProviderConfig '
145
+ assert str (excinfo .value ).startswith ('Invalid data argument in ProviderServerConfig '
146
146
' constructor: {0}' .format (test_config ))
147
147
148
148
def test_invalid_totp_provider_config_response (self ):
149
149
test_config = 'invalid'
150
150
with pytest .raises (ValueError ) as excinfo :
151
151
multi_factor_config_mgt .MultiFactorServerConfig .ProviderServerConfig .\
152
152
TOTPProviderServerConfig (test_config )
153
- assert str (excinfo .value ).startswith ('Invalid data argument in TOTPProviderConfig '
153
+ assert str (excinfo .value ).startswith ('Invalid data argument in TOTPProviderServerConfig '
154
154
' constructor: {0}' .format (test_config ))
155
155
156
156
def test_valid_server_response (self ):
You can’t perform that action at this time.
0 commit comments