diff options
-rw-r--r-- | talerbank/app/tests.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/talerbank/app/tests.py b/talerbank/app/tests.py index d893637..f5a70b0 100644 --- a/talerbank/app/tests.py +++ b/talerbank/app/tests.py @@ -64,8 +64,17 @@ def clear_db(): cursor.execute("ALTER SEQUENCE app_bankaccount_account_no_seq" " RESTART") cursor.execute("ALTER SEQUENCE app_banktransaction_id_seq RESTART") +# Testing the "Integration API": +# has three operations: 1) /config, 2,3) create, see status of withdrawal. +class IntegrationConfigTestCase(TestCase): + def test_config(self): + c = Client() + r = c.get("/config") + self.assertEqual(r.status_code, 200) + # Testing the "Access API": -# (testing) registration* + ask for balance* + withdraw: create* / ask status* / abort* / confirm. +# (testing) registration + ask for balance +# withdraw: create / ask status / abort / confirm. class AccessApiWithdrawTestCase(TestCase): def setUp(self): clear_db() |