Beispiel #1
0
def test_bindprop(person_class):
    db_val, (binding, val) = bindprop(person_class,
                                      'name',
                                      'dave',
                                      binding='n1')
    assert db_val == 'name'
    assert binding == 'n1'
    assert val == 'dave'
Beispiel #2
0
 async def test_traversal_bindprop(self, app, person_class):
     session = await app.session()
     itziri = person_class()
     itziri.name = 'itziri'
     result1 = await session.save(itziri)
     bound_name = bindprop(person_class, 'name', 'itziri', binding='v1')
     p1 = await session.traversal(person_class).has(*bound_name).next()
     await app.close()
Beispiel #3
0
 async def test_traversal_bindprop(self, app, person_class):
     session = await app.session()
     itziri = person_class()
     itziri.name = 'itziri'
     result1 = await session.save(itziri)
     bound_name = bindprop(person_class, 'name', 'itziri', binding='v1')
     p1 = await session.traversal(person_class).has(*bound_name).next()
     await app.close()
Beispiel #4
0
def test_bindprop(person_class):
    db_val, (binding, val) = bindprop(
        person_class, 'name', 'dave', binding='n1')
    assert db_val == 'name'
    assert binding == 'n1'
    assert val == 'dave'