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

All Samples(36)  |  Call(34)  |  Derive(0)  |  Import(2)

src/p/y/pyroonga-0.5.2/pyroonga/tests/unit/odm/test_query.py   pyroonga(Download)
    def test___init___without_kwargs(self):
        record = query.GroongaRecord(None)
        assert isinstance(record, query.GroongaRecord)
 
    def test___init___with_class(self):
        class A(object):
            pass
        record = query.GroongaRecord(A)
        expected_attr = utils.random_string()
        setattr(A, expected_attr, 'test')
        record = query.GroongaRecord(A, **{expected_attr: 'test'})
        assert getattr(record, expected_attr) == 'test'
 
            bar = None
        with pytest.raises(AttributeError):
            query.GroongaRecord(A, foo='bar', baz='baz')
        with pytest.raises(AttributeError):
            query.GroongaRecord(A, fo='bar', bar='baz')

src/p/y/pyroonga-HEAD/pyroonga/tests/unit/odm/test_query.py   pyroonga(Download)
    def test___init___without_kwargs(self):
        record = query.GroongaRecord(None)
        assert isinstance(record, query.GroongaRecord)
 
    def test___init___with_class(self):
        class A(object):
            pass
        record = query.GroongaRecord(A)
        expected_attr = utils.random_string()
        setattr(A, expected_attr, 'test')
        record = query.GroongaRecord(A, **{expected_attr: 'test'})
        assert getattr(record, expected_attr) == 'test'
 
            bar = None
        with pytest.raises(AttributeError):
            query.GroongaRecord(A, foo='bar', baz='baz')
        with pytest.raises(AttributeError):
            query.GroongaRecord(A, fo='bar', bar='baz')

src/p/y/pyroonga-0.5.2/pyroonga/odm/table.py   pyroonga(Download)
    )
from pyroonga.odm import query
from pyroonga.odm.query import (
    GroongaRecord,
    LoadQuery,

src/p/y/pyroonga-HEAD/pyroonga/odm/table.py   pyroonga(Download)
    )
from pyroonga.odm import query
from pyroonga.odm.query import (
    GroongaRecord,
    LoadQuery,