X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/527c5dba85fcdfd70755b6c1f899dbb21f5ec40a..bf3f18ce9313f4929ff327fbf12803157de171cb:/apps/dictionary/tests.py diff --git a/apps/dictionary/tests.py b/apps/dictionary/tests.py index 526819a01..0c83cf183 100755 --- a/apps/dictionary/tests.py +++ b/apps/dictionary/tests.py @@ -24,7 +24,7 @@ class DictionaryTests(WLTestCase): rose --- kind of a flower. rose --- kind of a flower. - rose (color) --- #FF007F. + rose (techn.) --- #FF007F. """ @@ -33,20 +33,20 @@ class DictionaryTests(WLTestCase): self.assertEqual( len(self.client.get('/przypisy/').context['object_list']), 2, - 'There should be a note on the note list.') + 'There should be two notes on the note list.') self.assertEqual( - len(self.client.get('/przypisy/?ltr=r').context['object_list']), + len(self.client.get('/przypisy/?ltr=a').context['object_list']), 0, 'There should not be a note for the letter A.') self.assertEqual( len(self.client.get('/przypisy/?ltr=r').context['object_list']), 2, - 'There should be a note for the letter R.') + 'Both notes start with the letter R.') self.assertEqual( - len(self.client.get('/przypisy/?qual=color').context['object_list']), - 2, - 'There should be a note for the letter R.') + len(self.client.get('/przypisy/?qual=techn.').context['object_list']), + 1, + 'There should be a note qualified with \'techn.\' qualifier.')