def test_list_all(self): l = list(AuditDAO.list_all()) self.assertEquals(l, [AuditDAO.get(self.record_id)])
def list_all_records(): parse_collection_request(_SCHEMA) result = [record_to_view(record) for record in AuditDAO.list_all()] return make_collection_response(u'audit-log', result)