Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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()