books = BookTable([\r
{'id': 1, 'name': 'Foo: Bar'},\r
])\r
+\r
# access without order_by works\r
books.data\r
books.rows\r
\r
+ # make sure BoundColumnn.name always gives us the right thing, whether\r
+ # the column explicitely defines a name or not.\r
+ books.columns['count'].name == 'count'\r
+ books.columns['answer'].name == 'answer'\r
+\r
for r in books.rows:\r
# unknown fields are removed/not-accessible\r
assert 'name' in r\r
# TODO: pagination\r
# TODO: support function column sources both for modeltables (methods on model) and static tables (functions in dict)\r
# TODO: manual base columns change -> update() call (add as example in docstr here) -> rebuild snapshot: is row cache, column cache etc. reset?\r
-# TODO: test that boundcolumn.name works with name overrides and without\r
# TODO: throw an exception on invalid order_by
\ No newline at end of file