MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_reverse

Method test_reverse

test/ext/test_mutable.py:754–764  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

752 eq_(f1.data, [3, 2, 1])
753
754 def test_reverse(self):
755 sess = fixture_session()
756
757 f1 = Foo(data=[1, 3, 2])
758 sess.add(f1)
759 sess.commit()
760
761 f1.data.reverse()
762 sess.commit()
763
764 eq_(f1.data, [2, 3, 1])
765
766 def test_pickle_parent(self):
767 sess = fixture_session()

Callers

nothing calls this directly

Calls 6

fixture_sessionFunction · 0.90
eq_Function · 0.90
FooClass · 0.70
addMethod · 0.45
commitMethod · 0.45
reverseMethod · 0.45

Tested by

no test coverage detected