示例#1
0
 def test_list_all(self):
     l = list(AuditDAO.list_all())
     self.assertEquals(l, [AuditDAO.get(self.record_id)])
示例#2
0
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)