Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Commit bef613a

Browse files
committed
added test
1 parent 575113c commit bef613a

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

tests/crypt/test__python_rsa.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,3 +191,12 @@ def test_from_service_account_file(self):
191191

192192
assert signer.key_id == SERVICE_ACCOUNT_INFO[base._JSON_FILE_PRIVATE_KEY_ID]
193193
assert isinstance(signer._key, rsa.key.PrivateKey)
194+
195+
196+
class TestModule(object):
197+
def test_import_warning(self):
198+
import importlib
199+
from google.auth.crypt import _python_rsa
200+
201+
with pytest.warns(FutureWarning, match="The 'rsa' library is deprecated"):
202+
importlib.reload(_python_rsa)

0 commit comments

Comments
 (0)