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

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

src/k/n/knowledge-0.3/tests/test_basic.py   knowledge(Download)
    def test_basic_one(self):
        """ Basic usage. """
        apple = Entity('apple')
        DBSession.add(apple)
        DBSession.commit()
    def test_associating_facts_unicode_by_key(self):
        apple = Entity('apple')
        DBSession.add(apple)
        DBSession.commit()
        apple['foo'] = u'bar'
    def test_associating_facts_unicode_by_attr(self):
        apple = Entity('apple')
        DBSession.add(apple)
        DBSession.commit()
        apple['foo'] = u'bar'
    def test_associating_facts_unicode_by_get(self):
        apple = Entity('apple')
        DBSession.add(apple)
        DBSession.commit()
        apple['foo'] = u'bar'
    def test_associating_facts_get_default(self):
        apple = Entity('apple')
        DBSession.add(apple)
        DBSession.commit()
        apple['foo'] = u'bar'