From 16c3788211218288dec08c55678ced2abead3733 Mon Sep 17 00:00:00 2001 From: Benjamin Saller Date: Fri, 20 Jul 2007 19:00:28 +0000 Subject: test for '' on a custom prop --- diff --git a/tests/test_model.py b/tests/test_model.py index a346510..059a128 100644 --- a/tests/test_model.py +++ b/tests/test_model.py @@ -122,6 +122,20 @@ class Test(unittest.TestCase): assert 'title' in c # maps back w/o the type assert 'incept' in c + + ds.update(uid, {'title' : 'Random Extras the sequel', + 'foobar' : '', + 'incept:date' : datetime.datetime.now().isoformat()}) + + ds.complete_indexing() + assert ds.find('whodofoodo')[1] == 0 + # found with it + assert ds.find('foobar:whodofoodo')[1] == 0 + c = ds.get_properties(uid) + assert 'title' in c + # maps back w/o the type + assert 'incept' in c + assert c['foobar'] == '' ds.stop() -- cgit v0.9.1