gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-bank] branch master updated: test /pin/question


From: gnunet
Subject: [GNUnet-SVN] [taler-bank] branch master updated: test /pin/question
Date: Thu, 09 Nov 2017 00:53:13 +0100

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository bank.

The following commit(s) were added to refs/heads/master by this push:
     new 9c78889  test /pin/question
9c78889 is described below

commit 9c78889af170af0a7d9a0d2ec553689780945768
Author: Marcello Stanisci <address@hidden>
AuthorDate: Thu Nov 9 00:52:28 2017 +0100

    test /pin/question
---
 talerbank/app/tests.py | 29 ++++++++++++++++++++++++++++-
 1 file changed, 28 insertions(+), 1 deletion(-)

diff --git a/talerbank/app/tests.py b/talerbank/app/tests.py
index 8fbc4a7..84ab430 100644
--- a/talerbank/app/tests.py
+++ b/talerbank/app/tests.py
@@ -31,7 +31,34 @@ def clear_db():
 
 class WithdrawTestCase(TestCase):
     # FIXME tbd
-    pass
+    def setUp(self):
+        user_bankaccount = BankAccount(
+            user=User.objects.create_user(username="test_user",
+                                          password="test_password"))
+        user_bankaccount.save()
+    
+    def test_withdraw(self):
+        client = Client()
+        params = {
+          "amount_value": "0",
+          "amount_fraction": "1",
+          "amount_currency": settings.TALER_CURRENCY,
+          "exchange": "http://exchange.example/";,
+          "reserve_pub": "UVZ789",
+          "wire_details": '''{
+              "test":
+                  {"type":"test"},
+                  {"account_number":"99"},
+                  {"bank_uri":"http://bank.example/"},
+                  {"name":"example"}
+              }'''
+        }
+        client.post(reverse("login", urlconf=urls),
+                    {"username": "test_user",
+                     "password": "test_password"})
+
+        response = client.get(reverse("pin-question", urlconf=urls),
+                              params)
 
 class RegisterTestCase(TestCase):
     """User registration"""

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]