diff options
Diffstat (limited to 'archaeological_finds/tests.py')
| -rw-r--r-- | archaeological_finds/tests.py | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/archaeological_finds/tests.py b/archaeological_finds/tests.py index ead46b1d9..d9be3d25d 100644 --- a/archaeological_finds/tests.py +++ b/archaeological_finds/tests.py @@ -694,8 +694,8 @@ class FindSearchTest(FindInit, TestCase):              response = client.get(reverse('get-find'), search)              self.assertEqual(response.status_code, 200)              res = json.loads(response.content) -            msg = "{} result(s) where expected for search: {}".format( -                expected_result, q) +            msg = "{} result(s) where expected for search: {} - found {}" \ +                  "".format(expected_result, q, res['recordsTotal'])              if context:                  msg = context + " - " + msg              self.assertEqual(res['recordsTotal'], expected_result, @@ -736,8 +736,8 @@ class FindSearchTest(FindInit, TestCase):          find2.save()          result = [ -            (u'{}="{}"'.format(loan_key , unicode(_(u"Yes"))), 0), -            (u'{}="{}"'.format(loan_key , unicode(_(u"No"))), 2), +            (u'{}="{}"'.format(loan_key, unicode(_(u"Yes"))), 0), +            (u'{}="{}"'.format(loan_key, unicode(_(u"No"))), 2),          ]          self._test_search(c, result, context="All container in their "                                               "reference location") @@ -745,8 +745,8 @@ class FindSearchTest(FindInit, TestCase):          find2.save()          result = [ -            (u'{}="{}"'.format(loan_key , unicode(_(u"Yes"))), 1), -            (u'{}="{}"'.format(loan_key , unicode(_(u"No"))), 1), +            (u'{}="{}"'.format(loan_key, unicode(_(u"Yes"))), 1), +            (u'{}="{}"'.format(loan_key, unicode(_(u"No"))), 1),          ]          self._test_search(c, result, context="One container in his "                                               "reference location") | 
