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):
    def test_put_get(self):
        user = User(id=gen_uuid(), firstname='David', lastname='Reynolds')
        user.username = 'david'
 
        self.datastore.put(user)
    def test_put_get_list(self):
        user = User(id=gen_uuid(), firstname='David', lastname='Reynolds')
        user.username = 'david'
        self.datastore.put(user)
 

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):
    def test_put_get(self):
        user = User(id=gen_uuid(), firstname='David', lastname='Reynolds')
        user.username = 'david'
 
        self.datastore.put(user)
    def test_put_get_list(self):
        user = User(id=gen_uuid(), firstname='David', lastname='Reynolds')
        user.username = 'david'
        self.datastore.put(user)
 

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):
    def test_put_get(self):
        user = User(id=gen_uuid(), firstname='David', lastname='Reynolds')
        user.username = 'david'
        self.datastore.put(user)
 

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):
    def test_put_get(self):
        user = User(id=gen_uuid(), firstname='David', lastname='Reynolds')
        user.username = 'david'
        self.datastore.put(user)