

def test_get_error(self):
    'Test for a ObjectNotFound exception.'
    objects = self.mapper[SimpleModel]
    (yield self.async.assertRaises(SimpleModel.DoesNotExist, objects.get, code='test3'))
    (yield self.async.assertRaises(SimpleModel.DoesNotExist, objects.get, id=(- 400)))

dataset/ETHPy150Open lsbardel/python-stdnet/tests/all/query/manager.py TestManager.test_get_error/original