Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Saller <bcsaller@objectrealms.net>2007-07-20 19:00:28 (GMT)
committer Benjamin Saller <bcsaller@objectrealms.net>2007-07-20 19:00:28 (GMT)
commit16c3788211218288dec08c55678ced2abead3733 (patch)
treecb6668976ecac2d77455f1fdba999885646b0f67
parent9a44a5bafb391faa57a58efdc0f6d451221c9d45 (diff)
test for '' on a custom prop
-rw-r--r--tests/test_model.py14
1 files changed, 14 insertions, 0 deletions
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()