This repository was archived by the owner on Mar 13, 2022. It is now read-only.
File tree 4 files changed +7
-7
lines changed
4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -70,13 +70,13 @@ def _load_config(self):
70
70
self ._environ [SERVICE_PORT_ENV_NAME ]))
71
71
72
72
if not os .path .isfile (self ._token_filename ):
73
- raise ConfigException ("Service token file does not exists ." )
73
+ raise ConfigException ("Service token file does not exist ." )
74
74
75
75
self ._read_token_file ()
76
76
77
77
if not os .path .isfile (self ._cert_filename ):
78
78
raise ConfigException (
79
- "Service certification file does not exists ." )
79
+ "Service certification file does not exist ." )
80
80
81
81
with open (self ._cert_filename ) as f :
82
82
if not f .read ():
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ def test_empty_host(self):
142
142
143
143
def test_no_cert_file (self ):
144
144
loader = self .get_test_loader (cert_filename = "not_exists_file_1123" )
145
- self ._should_fail_load (loader , "cert file does not exists " )
145
+ self ._should_fail_load (loader , "cert file does not exist " )
146
146
147
147
def test_empty_cert_file (self ):
148
148
loader = self .get_test_loader (
@@ -151,7 +151,7 @@ def test_empty_cert_file(self):
151
151
152
152
def test_no_token_file (self ):
153
153
loader = self .get_test_loader (token_filename = "not_exists_file_1123" )
154
- self ._should_fail_load (loader , "token file does not exists " )
154
+ self ._should_fail_load (loader , "token file does not exist " )
155
155
156
156
def test_empty_token_file (self ):
157
157
loader = self .get_test_loader (
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ def as_file(self):
120
120
else :
121
121
self ._file = _create_temp_file_with_content (self ._data )
122
122
if self ._file and not os .path .isfile (self ._file ):
123
- raise ConfigException ("File does not exists : %s" % self ._file )
123
+ raise ConfigException ("File does not exist : %s" % self ._file )
124
124
return self ._file
125
125
126
126
def as_data (self ):
Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ def test_file_given_non_existing_file(self):
178
178
temp_filename = NON_EXISTING_FILE
179
179
obj = {TEST_FILE_KEY : temp_filename }
180
180
t = FileOrData (obj = obj , file_key_name = TEST_FILE_KEY )
181
- self .expect_exception (t .as_file , "does not exists " )
181
+ self .expect_exception (t .as_file , "does not exist " )
182
182
183
183
def test_file_given_data (self ):
184
184
obj = {TEST_DATA_KEY : TEST_DATA_BASE64 }
@@ -1165,7 +1165,7 @@ def test_ssl_no_cert_files(self):
1165
1165
active_context = "ssl-no_file" )
1166
1166
self .expect_exception (
1167
1167
loader .load_and_set ,
1168
- "does not exists " ,
1168
+ "does not exist " ,
1169
1169
FakeConfig ())
1170
1170
1171
1171
def test_ssl (self ):
You can’t perform that action at this time.
0 commit comments