[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [gettor/master] Links file generation tests



commit 68e97f6fd0fe724b48db4996ed8d701eaa0b72ec
Author: ilv <ilv@xxxxxxxxxxxxxxxxxxxxxxxx>
Date:   Fri Jun 20 20:58:01 2014 -0400

    Links file generation tests
---
 src/create_links_demo.py   |   19 +++++++++++++++++++
 src/providers/github.links |   11 +++++++++++
 2 files changed, 30 insertions(+)

diff --git a/src/create_links_demo.py b/src/create_links_demo.py
new file mode 100644
index 0000000..7e571cf
--- /dev/null
+++ b/src/create_links_demo.py
@@ -0,0 +1,19 @@
+#!/usr/bin/python
+#
+# Dummy script to test GetTore's Core module progress
+#
+
+import gettor
+
+try:
+    core = gettor.Core('gettor.cfg')
+    core.create_links_file('Github')
+    core.add_link('Github', 'linux', 'es', 
+                  'https://foo.bar https://foo.bar.asc 111-222-333-444')
+    core.add_link('Github', 'linux', 'es', 
+                  'https://foo.bar https://foo.bar.asc 555-666-777-888')
+    
+except ValueError as e:
+    print "Value error: " + str(e)
+except RuntimeError as e:
+    print "Internal error: " + str(e)
diff --git a/src/providers/github.links b/src/providers/github.links
new file mode 100644
index 0000000..6079df2
--- /dev/null
+++ b/src/providers/github.links
@@ -0,0 +1,11 @@
+[provider]
+name = Github
+
+[linux]
+es = https://foo.bar https://foo.bar.asc 111-222-333-444,
+	https://foo.bar https://foo.bar.asc 555-666-777-888
+
+[windows]
+
+[osx]
+



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits