[Pkg-privacy-commits] [obfsproxy] 263/353: Fix the test_socks.py unit tests

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 13:02:08 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch master
in repository obfsproxy.

commit 9c1b8ab9c82a500d9998788946f3a281178aa78f
Author: Yawning Angel <yawning at schwanenlied.me>
Date:   Mon Mar 10 20:14:55 2014 +0000

    Fix the test_socks.py unit tests
    
    Not going to touch #10240 for now since the SOCKS args handler will eventually
    be totally rewritten (changed to return a dict containing the separated [k=v]
    pairs).
---
 obfsproxy/test/test_socks.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/obfsproxy/test/test_socks.py b/obfsproxy/test/test_socks.py
index e8fb855..989d526 100644
--- a/obfsproxy/test/test_socks.py
+++ b/obfsproxy/test/test_socks.py
@@ -4,15 +4,15 @@ import twisted.trial.unittest
 
 class test_SOCKS(twisted.trial.unittest.TestCase):
     def test_socks_args_splitting(self):
-        socks_args = socks.split_socks_args("monday=blue;tuesday=grey;wednesday=too;thursday=don\\;tcareabout\\\\you;friday=i\\;minlove")
+        socks_args = socks._split_socks_args("monday=blue;tuesday=grey;wednesday=too;thursday=don\\;tcareabout\\\\you;friday=i\\;minlove")
         self.assertListEqual(socks_args, ["monday=blue", "tuesday=grey", "wednesday=too", "thursday=don;tcareabout\\you", "friday=i;minlove"])
 
-        socks_args = socks.split_socks_args("monday=blue")
+        socks_args = socks._split_socks_args("monday=blue")
         self.assertListEqual(socks_args, ["monday=blue"])
 
-        socks_args = socks.split_socks_args("monday=;tuesday=grey")
+        socks_args = socks._split_socks_args("monday=;tuesday=grey")
         self.assertListEqual(socks_args, ["monday=", "tuesday=grey"])
 
-        socks_args = socks.split_socks_args("\\;=\\;;\\\\=\\;")
+        socks_args = socks._split_socks_args("\\;=\\;;\\\\=\\;")
         self.assertListEqual(socks_args, [";=;", "\\=;"])
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/obfsproxy.git



More information about the Pkg-privacy-commits mailing list