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: Double-check 'hint' fie


From: gnunet
Subject: [GNUnet-SVN] [taler-bank] branch master updated: Double-check 'hint' field exists.
Date: Mon, 11 Jun 2018 16:47:24 +0200

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 5ff6219  Double-check 'hint' field exists.
5ff6219 is described below

commit 5ff6219148e7a16fe8f602e092a67af4ae1dec10
Author: Marcello Stanisci <address@hidden>
AuthorDate: Mon Jun 11 16:47:01 2018 +0200

    Double-check 'hint' field exists.
---
 talerbank/app/tests.py | 22 +++++++++++++---------
 1 file changed, 13 insertions(+), 9 deletions(-)

diff --git a/talerbank/app/tests.py b/talerbank/app/tests.py
index a992638..43abd7c 100644
--- a/talerbank/app/tests.py
+++ b/talerbank/app/tests.py
@@ -1,16 +1,19 @@
 #  This file is part of TALER
 #  (C) 2014, 2015, 2016 INRIA
 #
-#  TALER is free software; you can redistribute it and/or modify it under the
-#  terms of the GNU Affero General Public License as published by the Free 
Software
-#  Foundation; either version 3, or (at your option) any later version.
+#  TALER is free software; you can redistribute it and/or modify
+#  it under the terms of the GNU Affero General Public License as
+#  published by the Free Software Foundation; either version 3,
+#  or (at your option) any later version.
 #
-#  TALER is distributed in the hope that it will be useful, but WITHOUT ANY
-#  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 
FOR
-#  A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
+#  TALER is distributed in the hope that it will be useful,
+#  but WITHOUT ANY WARRANTY; without even the implied warranty
+#  of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+#  See the GNU General Public License for more details.
 #
-#  You should have received a copy of the GNU General Public License along with
-#  TALER; see the file COPYING.  If not, see <http://www.gnu.org/licenses/>
+#  You should have received a copy of the GNU General Public
+#  License along with TALER; see the file COPYING.  If not,
+#  see <http://www.gnu.org/licenses/>.
 #
 #  @author Marcello Stanisci
 
@@ -561,7 +564,8 @@ class ParseAmountTestCase(TestCase):
             ret.dump())
         try:
             Amount.parse("Buggy")
-        except BadFormatAmount:
+        except BadFormatAmount as err:
+            self.assertEqual(err.hint, "Amount given was incorrect")
             return
         # make sure the control doesn't get here
         self.assertEqual(True, False)

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



reply via email to

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