MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_list_subclass

Method test_list_subclass

test/orm/test_collection.py:636–644  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

634 self._test_list_bulk(ListLike)
635
636 def test_list_subclass(self):
637 class MyList(list):
638 pass
639
640 self._test_adapter(MyList)
641 self._test_list(MyList)
642 self._test_list_bulk(MyList)
643 self._test_list_dataclasses(MyList)
644 self.assert_(getattr(MyList, "_sa_instrumented") == id(MyList))
645
646 def test_list_duck(self):
647 class ListLike:

Callers

nothing calls this directly

Calls 5

_test_adapterMethod · 0.95
_test_listMethod · 0.95
_test_list_bulkMethod · 0.95
assert_Method · 0.45

Tested by

no test coverage detected