diff options
author | Marcello Stanisci <marcello.stanisci@inria.fr> | 2017-05-05 19:08:44 +0200 |
---|---|---|
committer | Marcello Stanisci <marcello.stanisci@inria.fr> | 2017-05-05 19:08:44 +0200 |
commit | ae74b2d32a4ad6d21620e84a3190398f8778e19d (patch) | |
tree | bd854dc8ff6ced39817762bdd2ddb606f2d33c95 /talerbank/app/tests.py | |
parent | 867bf7eb66d5614b6fab0cdee6705f07dad3750f (diff) | |
download | bank-ae74b2d32a4ad6d21620e84a3190398f8778e19d.tar.gz bank-ae74b2d32a4ad6d21620e84a3190398f8778e19d.tar.bz2 bank-ae74b2d32a4ad6d21620e84a3190398f8778e19d.zip |
towards /history refactoring
Diffstat (limited to 'talerbank/app/tests.py')
-rw-r--r-- | talerbank/app/tests.py | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/talerbank/app/tests.py b/talerbank/app/tests.py index 7783e3c..d6978e1 100644 --- a/talerbank/app/tests.py +++ b/talerbank/app/tests.py @@ -101,15 +101,9 @@ class HistoryTestCase(TestCase): def test_history(self): c = Client() - response = c.post(reverse("history", urlconf=urls), - data='{"auth": {"type": "basic"}, \ - "start": 4, \ - "delta": 4, \ - "direction": "whatever"}', - content_type="application/json", - **{"X-Taler-Bank-Username": "User", "X-Taler-Bank-Password": "Password"}) - # Because of the 'whatever' direction given - self.assertEqual(400, response.status_code) + response = c.get(reverse("history", urlconf=urls), {"auth": "basic", "delta": "+4"}, + **{"X_TALER_BANK_USERNAME": "User", "X_TALER_BANK_PASSWORD": "Password"}) + self.assertEqual(200, response.status_code) # This tests whether a bank account goes red and then |