MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_close_attributes

Method test_close_attributes

test/base/test_result.py:320–333  ·  view source on GitHub ↗

test #8710

(self)

Source from the content-addressed store, hash-verified

318 return res
319
320 def test_close_attributes(self):
321 """test #8710"""
322 r1 = self._fixture()
323
324 is_false(r1.closed)
325 is_false(r1._soft_closed)
326
327 r1._soft_close()
328 is_false(r1.closed)
329 is_true(r1._soft_closed)
330
331 r1.close()
332 is_true(r1.closed)
333 is_true(r1._soft_closed)
334
335 def test_class_presented(self):
336 """To support different kinds of objects returned vs. rows,

Callers

nothing calls this directly

Calls 5

_fixtureMethod · 0.95
is_falseFunction · 0.90
is_trueFunction · 0.90
_soft_closeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected