]> git.ipfire.org Git - thirdparty/python-fints.git/commitdiff
Test get_information()
authorHenryk Plötz <henryk@ploetzli.ch>
Mon, 10 Sep 2018 09:47:45 +0000 (11:47 +0200)
committerRaphael Michel <mail@raphaelmichel.de>
Mon, 3 Dec 2018 18:34:29 +0000 (19:34 +0100)
tests/test_client.py

index 380d7ab16604c7d2f26f8b55ba3545fd8778bc94..8915af0216f1b086ffc59cf400a239ef4feb9684 100644 (file)
@@ -10,13 +10,19 @@ def fints_client(fints_server):
         fints_server
     )
 
-def test_client_get_sepa_accounts(fints_client):
+def test_get_sepa_accounts(fints_client):
     with fints_client:
         accounts = fints_client.get_sepa_accounts()
 
     assert accounts
 
-def test_client_resume(fints_client, fints_server):
+def test_get_information(fints_client):
+    with fints_client:
+        information = fints_client.get_information()
+
+    assert information["bank"]["name"] == 'Test Bank'
+
+def test_resume(fints_client, fints_server):
     with fints_client:
         system_id = fints_client.system_id
         dialog_id = fints_client._standing_dialog.dialogue_id