(self)
| 856 | eq_(ci.values(), [c1, c2, c3]) |
| 857 | |
| 858 | def test_items(self): |
| 859 | c1, c2, c3 = sql.column("c1"), sql.column("c2"), sql.column("c3") |
| 860 | c2.key = "foo" |
| 861 | cc = self._column_collection( |
| 862 | columns=[("c1", c1), ("foo", c2), ("c3", c3)] |
| 863 | ) |
| 864 | items = cc.items() |
| 865 | eq_(items, [("c1", c1), ("foo", c2), ("c3", c3)]) |
| 866 | ne_(id(items), id(cc.items())) |
| 867 | |
| 868 | ci = cc.as_readonly() |
| 869 | eq_(ci.items(), [("c1", c1), ("foo", c2), ("c3", c3)]) |
| 870 | |
| 871 | def test_getitem_tuple_str(self): |
| 872 | c1, c2, c3 = sql.column("c1"), sql.column("c2"), sql.column("c3") |
nothing calls this directly
no test coverage detected