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

[tor-commits] [ooni-probe/master] Fix typo in test writing documentation



commit 553eb3b9b843fbf62a5d7306e2c5e674e35372d5
Author: Arturo Filastò <art@xxxxxxxxx>
Date:   Fri Feb 1 16:53:24 2013 +0100

    Fix typo in test writing documentation
---
 docs/source/writing_tests.rst |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/source/writing_tests.rst b/docs/source/writing_tests.rst
index ccc529a..3065b9e 100644
--- a/docs/source/writing_tests.rst
+++ b/docs/source/writing_tests.rst
@@ -168,7 +168,7 @@ To implement a simple ICMP ping based on this function you can do like so
   from ooni.templates import scapyt
 
   class UsageOptions(usage.Options):
-      optParameters = [['target', 't', '8.8.8.8', "Specify the target to ping"]]
+      optParameters = [['target', 't', '127.0.0.1', "Specify the target to ping"]]
 
   class ExampleICMPPingScapy(scapyt.BaseScapyTest):
       name = "Example ICMP Ping Test"
@@ -205,7 +205,7 @@ regular sequential code.
   from ooni.templates import scapyt
 
   class UsageOptions(usage.Options):
-      optParameters = [['target', 't', self.localOptions['target'], "Specify the target to ping"]]
+      optParameters = [['target', 't', '127.0.0.1', "Specify the target to ping"]]
 
   class ExampleICMPPingScapyYield(scapyt.BaseScapyTest):
       name = "Example ICMP Ping Test"



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