File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,8 @@ class TOTPProviderServerConfig:
8484 def __init__ (self , data ):
8585 if not isinstance (data , dict ):
8686 raise ValueError (
87- 'Invalid data argument in TOTPProviderServerConfig constructor: {0}' .format (data ))
87+ 'Invalid data argument in TOTPProviderServerConfig'
88+ 'constructor: {0}' .format (data ))
8889 self ._data = data
8990
9091 @property
Original file line number Diff line number Diff line change @@ -135,22 +135,22 @@ def test_invalid_multi_factor_config_response(self):
135135 test_config = 'invalid'
136136 with pytest .raises (ValueError ) as excinfo :
137137 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 '
139139 ' constructor: {0}' .format (test_config ))
140140
141141 def test_invalid_provider_config_response (self ):
142142 test_config = 'invalid'
143143 with pytest .raises (ValueError ) as excinfo :
144144 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 '
146146 ' constructor: {0}' .format (test_config ))
147147
148148 def test_invalid_totp_provider_config_response (self ):
149149 test_config = 'invalid'
150150 with pytest .raises (ValueError ) as excinfo :
151151 multi_factor_config_mgt .MultiFactorServerConfig .ProviderServerConfig .\
152152 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 '
154154 ' constructor: {0}' .format (test_config ))
155155
156156 def test_valid_server_response (self ):
You can’t perform that action at this time.
0 commit comments