MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_row_is_hashable

Method test_row_is_hashable

test/sql/test_resultset.py:2008–2010  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2006 eq_(list(row._mapping), ["a", "b", "count"])
2007
2008 def test_row_is_hashable(self):
2009 row = Row(object(), [None, None, None], {}, (1, "value", "foo"))
2010 eq_(hash(row), hash((1, "value", "foo")))
2011
2012 @testing.provide_metadata
2013 def test_row_getitem_indexes_compiled(self, connection):

Callers

nothing calls this directly

Calls 2

RowClass · 0.90
eq_Function · 0.90

Tested by

no test coverage detected