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

art at torproject.org art at torproject.org
Thu Feb 7 13:13:04 UTC 2013


commit 553eb3b9b843fbf62a5d7306e2c5e674e35372d5
Author: Arturo Filastò <art at fuffa.org>
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"





More information about the tor-commits mailing list