

def test_get(self):
    objects = self.mapper[SimpleModel]
    (v, created) = (yield objects.update_or_create(code='test2'))
    self.assertTrue(created)
    v1 = (yield objects.get(code='test2'))
    self.assertEqual(v1, self)

dataset/ETHPy150Open lsbardel/python-stdnet/tests/all/query/manager.py TestManager.test_get/VarMisuse@64/77 `v`->`self`