Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/x/o/xodb-HEAD/tests/test_xapian.py   xodb(Download)
    def test_stored_prefixes(self):
        t = tempfile.mkdtemp()
        xdb = xodb.Database(t)
        xdb.backend.set_metadata("_XODB_RP_Foo", "bar")
        xdb.backend.set_metadata("_XODB_BP_Ding", "dong")
    def test_duplicate_prefix_detection(self):
        t = tempfile.mkdtemp()
        xdb = xodb.Database(t)
        xdb.add_boolean_prefix('foo', 'bar')
        xdb.add_prefix('foo', 'bar')
    def test_duplicate_prefix_query_warning(self):
        t = tempfile.mkdtemp()
        xdb = xodb.Database(t)
        xdb.backend.set_metadata("_XODB_BP_foo", "FOO")
        xdb.backend.set_metadata("_XODB_RP_foo", "FOO")