MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_pickle_anon_label

Method test_pickle_anon_label

test/sql/test_quote.py:1019–1025  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1017 eq_(q1.quote, q2.quote)
1018
1019 def test_pickle_anon_label(self):
1020 q1 = _anonymous_label(quoted_name("x", True))
1021 for loads, dumps in picklers():
1022 q2 = loads(dumps(q1))
1023 assert isinstance(q2, _anonymous_label)
1024 eq_(str(q1), str(q2))
1025 eq_(q1.quote, q2.quote)
1026
1027 def _assert_quoted(self, value, quote):
1028 assert isinstance(value, quoted_name)

Callers

nothing calls this directly

Calls 6

_anonymous_labelClass · 0.90
quoted_nameClass · 0.90
picklersFunction · 0.90
eq_Function · 0.90
loadsFunction · 0.85
dumpsFunction · 0.85

Tested by

no test coverage detected