MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_slice

Method test_slice

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

Source from the content-addressed store, hash-verified

791 eq_(path[3], amapper.attrs.email_address)
792
793 def test_slice(self):
794 umapper = inspect(self.classes.User)
795 amapper = inspect(self.classes.Address)
796 path = PathRegistry.coerce(
797 (
798 umapper,
799 umapper.attrs.addresses,
800 amapper,
801 amapper.attrs.email_address,
802 )
803 )
804 eq_(path[1:3], (umapper.attrs.addresses, amapper))
805
806 def test_addition(self):
807 umapper = inspect(self.classes.User)

Callers

nothing calls this directly

Calls 3

inspectFunction · 0.90
eq_Function · 0.90
coerceMethod · 0.45

Tested by

no test coverage detected