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

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

src/p/y/pyroonga-0.5.2/pyroonga/tests/unit/odm/test_query.py   pyroonga(Download)
        class A(object):
            __tablename__ = 'test_table_name'
            _id = None
            grn = mock.Mock()
        A.grn.query.return_value = rv
        class A(object):
            __tablename__ = 'test_table_name'
            _id = None
            grn = mock.Mock()
        A.grn.query.return_value = 'true'
        class A(object):
            __tablename__ = 'test_table_name'
            foo = None
            grn = mock.Mock()
        A.grn.query.return_value = 2
        class A(object):
            __tablename__ = 'test_table_name'
            foo = None
            grn = mock.Mock()
        expected = random.randint(1, 100)
    def make_match_column(self, name):
        c = mock.Mock(spec=table.Column)
        c.name = name
        return c
 

src/p/y/pyroonga-HEAD/pyroonga/tests/unit/odm/test_query.py   pyroonga(Download)
        class A(object):
            __tablename__ = 'test_table_name'
            _id = None
            grn = mock.Mock()
        A.grn.query.return_value = rv
        class A(object):
            __tablename__ = 'test_table_name'
            _id = None
            grn = mock.Mock()
        A.grn.query.return_value = 'true'
        class A(object):
            __tablename__ = 'test_table_name'
            foo = None
            grn = mock.Mock()
        A.grn.query.return_value = 2
        class A(object):
            __tablename__ = 'test_table_name'
            foo = None
            grn = mock.Mock()
        expected = random.randint(1, 100)