MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_slice_token

Method test_slice_token

test/orm/test_utils.py:749–761  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

747 path[amapper]
748
749 def test_slice_token(self):
750 umapper = inspect(self.classes.User)
751 amapper = inspect(self.classes.Address)
752 path = PathRegistry.coerce(
753 (
754 umapper,
755 umapper.attrs.addresses,
756 amapper,
757 PathToken.intern(":*"),
758 )
759 )
760 is_true(path.is_token)
761 eq_(path[1:3], (umapper.attrs.addresses, amapper))
762
763 def test_indexed_key(self):
764 umapper = inspect(self.classes.User)

Callers

nothing calls this directly

Calls 5

inspectFunction · 0.90
is_trueFunction · 0.90
eq_Function · 0.90
internMethod · 0.80
coerceMethod · 0.45

Tested by

no test coverage detected