gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-bank] 04/05: test non existent future /history recor


From: gnunet
Subject: [GNUnet-SVN] [taler-bank] 04/05: test non existent future /history record
Date: Sat, 06 May 2017 22:30:46 +0200

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

marcello pushed a commit to branch master
in repository bank.

commit 938f20ab296a294b459acc1fe299ecbaa55838fc
Author: Marcello Stanisci <address@hidden>
AuthorDate: Sat May 6 22:08:15 2017 +0200

    test non existent future /history record
---
 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 6167233..54fdfd4 100644
--- a/talerbank/app/tests.py
+++ b/talerbank/app/tests.py
@@ -123,11 +123,12 @@ class HistoryTestCase(TestCase):
         data = response.content.decode("utf-8")
         data = json.loads(data)
         self.assertEqual(data["data"][0]["subject"], "h")
+        logger.info("latest row_id: %s" % data["data"][0]["row_id"])
         # Get non-existent record: the latest plus one in the future
-#        response = c.get(reverse("history", urlconf=urls), {"auth": "basic", 
"delta": "+1", "start": "5"},
-#                         **{"HTTP_X_TALER_BANK_USERNAME": "User", 
"HTTP_X_TALER_BANK_PASSWORD": "Password"})
-#        data = response.content.decode("utf-8")
-#        self.assertJSONEqual(data, {"data": []})
+        response = c.get(reverse("history", urlconf=urls), {"auth": "basic", 
"delta": "+1", "start": "10"},
+                         **{"HTTP_X_TALER_BANK_USERNAME": "User", 
"HTTP_X_TALER_BANK_PASSWORD": "Password"})
+        data = response.content.decode("utf-8")
+        self.assertJSONEqual(data, {"data": []})
 # This tests whether a bank account goes red and then
 # goes green again
 class DebitTestCase(TestCase):

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



reply via email to

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