[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-bank] 02/02: check status code after wire transfer
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-bank] 02/02: check status code after wire transfer |
Date: |
Sat, 18 Nov 2017 11:25:48 +0100 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository bank.
commit d65529da41412bd51a613ce66e9e9433453ca41e
Author: Marcello Stanisci <address@hidden>
AuthorDate: Sat Nov 18 11:25:24 2017 +0100
check status code after wire transfer
---
talerbank/app/tests.py | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/talerbank/app/tests.py b/talerbank/app/tests.py
index 0ef9aab..7e1ea26 100644
--- a/talerbank/app/tests.py
+++ b/talerbank/app/tests.py
@@ -113,12 +113,13 @@ class InternalWireTransferTestCase(TestCase):
def test_internal_wire_transfer(self):
client = Client()
client.login(username="give_money", password="gm")
- client.post(reverse("profile", urlconf=urls),
- {"amount": 3.0,
- "counterpart": 88,
- "subject": "charity"})
+ response = client.post(reverse("profile", urlconf=urls),
+ {"amount": 3.0,
+ "counterpart": 88,
+ "subject": "charity"})
tm = BankAccount.objects.get(account_no=88)
self.assertEqual(0, Amount.cmp(Amount(settings.TALER_CURRENCY, 3),
tm.amount))
+ self.assertEqual(200, response.status_code)
def tearDown(self):
clear_db()
--
To stop receiving notification emails like this one, please contact
address@hidden