From 8f477cc8024c15ecc5801c2d04c915ebdfa6f093 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Tue, 15 Apr 2014 16:40:49 +0200 Subject: [PATCH] add search by organisation --- pymisp/testing.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pymisp/testing.py b/pymisp/testing.py index c1fc985..93d8874 100644 --- a/pymisp/testing.py +++ b/pymisp/testing.py @@ -43,8 +43,14 @@ def list_copy(filename): with open(filename, 'r') as f: for l in f: l = int(l.strip()) + print l copy_event(l) + +def export_our_org(): + circl = source.search(org='CIRCL') + return _to_utf8(circl) + if __name__ == '__main__': init() - list_copy('list') + list_copy('all_ours')