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'
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()
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'