diff test/db_test_base.py @ 3033:f8d0fd056ac0

fix indexer searching with no valid words [SF#1086787]
author Richard Jones <richard@users.sourceforge.net>
date Mon, 03 Jan 2005 03:22:22 +0000
parents 224c7c0b9708
children d9b4224f955c
line wrap: on
line diff
--- a/test/db_test_base.py	Mon Jan 03 03:14:38 2005 +0000
+++ b/test/db_test_base.py	Mon Jan 03 03:22:22 2005 +0000
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 #
-# $Id: db_test_base.py,v 1.56 2004-12-16 22:22:55 jlgijsbers Exp $
+# $Id: db_test_base.py,v 1.57 2005-01-03 03:22:22 richard Exp $
 
 import unittest, os, shutil, errno, imp, sys, time, pprint
 
@@ -700,6 +700,7 @@
         i1 = self.db.issue.create(files=[f1, f2], title="flebble plop")
         i2 = self.db.issue.create(title="flebble the frooz")
         self.db.commit()
+        self.assertEquals(self.db.indexer.search([], self.db.issue), {})
         self.assertEquals(self.db.indexer.search(['hello'], self.db.issue),
             {i1: {'files': [f1]}})
         self.assertEquals(self.db.indexer.search(['world'], self.db.issue), {})

Roundup Issue Tracker: http://roundup-tracker.org/