Did I find the right examples for you? yes no

All Samples(10)  |  Call(6)  |  Derive(0)  |  Import(4)

src/s/i/simplestore-0.3.1/simplestore/tests/test_indexing.py   simplestore(Download)
 
from simplestore.index import Index
from simplestore.tests import gen_uuid, User, Entry, DataStoreTestCase
 
class IndexTestCase(DataStoreTestCase):
        self.datastore.put(user)
 
        entry1 = Entry(id=gen_uuid(),
                       user_id=user.id,
                       title='Foo',
                       content='Hello, World')
 
        entry2 = Entry(id=gen_uuid(),

src/s/i/simplestore-HEAD/simplestore/tests/test_indexing.py   simplestore(Download)
 
from simplestore.index import Index
from simplestore.tests import gen_uuid, User, Entry, DataStoreTestCase
 
class IndexTestCase(DataStoreTestCase):
        self.datastore.put(user)
 
        entry1 = Entry(id=gen_uuid(),
                       user_id=user.id,
                       title='Foo',
                       content='Hello, World')
 
        entry2 = Entry(id=gen_uuid(),

src/s/i/simplestore-0.3.1/simplestore/tests/test_sharding.py   simplestore(Download)
 
from simplestore.tests import config
from simplestore.tests import gen_uuid, User, Entry
 
class ShardTestCase(unittest.TestCase):
        entries = []
        for i in xrange(10):
            entry = Entry(id=gen_uuid(),
                          user_id=user['id'],
                          title='%s' % i,

src/s/i/simplestore-HEAD/simplestore/tests/test_sharding.py   simplestore(Download)
 
from simplestore.tests import config
from simplestore.tests import gen_uuid, User, Entry
 
class ShardTestCase(unittest.TestCase):
        entries = []
        for i in xrange(10):
            entry = Entry(id=gen_uuid(),
                          user_id=user['id'],
                          title='%s' % i,