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: testcase for /add/incom


From: gnunet
Subject: [GNUnet-SVN] [taler-bank] branch master updated: testcase for /add/incoming
Date: Wed, 01 Feb 2017 17:16:49 +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 dcff654  testcase for /add/incoming
dcff654 is described below

commit dcff6540a240fe6fc915289b55a0a4a9fc5d30b0
Author: Marcello Stanisci <address@hidden>
AuthorDate: Wed Feb 1 17:16:52 2017 +0100

    testcase for /add/incoming
---
 talerbank/app/tests.py | 21 ++++++++++++++++++++-
 1 file changed, 20 insertions(+), 1 deletion(-)

diff --git a/talerbank/app/tests.py b/talerbank/app/tests.py
index c1e74b6..a721be7 100644
--- a/talerbank/app/tests.py
+++ b/talerbank/app/tests.py
@@ -67,7 +67,6 @@ class LoginTestCase(TestCase):
 
     def tearDown(self):
         clearDb()
-        pass
     
 
     def test_login(self):
@@ -77,3 +76,23 @@ class LoginTestCase(TestCase):
                            "password": "test_password"},
                            follow=True)
         self.assertIn(("/profile", 302), response.redirect_chain)
+
+class AddIncomingTestCase(TestCase):
+    """Test money transfer's API"""
+
+    def setUp(self):
+        bank = User.objects.create_user(username="bank_user",
+                                        password="bank_password")
+        bank_account = BankAccount(user=bank,
+                                   currency=settings.TALER_CURRENCY)
+        user = User.objects.create_user(username="bank_user",
+                                        password="bank_password")
+        user_account = BankAccount(user=user,
+                                   currency=settings.TALER_CURRENCY)
+
+    def tearDown(self):
+        clearDb()
+
+    def test_add_incoming(self):
+       x = BankAccount.objects.get(account_no=1)
+       logger.info(x.account_no)

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



reply via email to

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