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

[tor-commits] [stem/master] Replaced a hardcoded path in test_relative_cookie



commit 7515471fa13c92873307054ea9e40ef5eea64c4a
Author: Beck <csybeck@xxxxxxxxx>
Date:   Wed Jun 27 00:31:55 2012 +0800

    Replaced a hardcoded path in test_relative_cookie
---
 test/unit/response/protocolinfo.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/test/unit/response/protocolinfo.py b/test/unit/response/protocolinfo.py
index c82c8f8..09d4414 100644
--- a/test/unit/response/protocolinfo.py
+++ b/test/unit/response/protocolinfo.py
@@ -2,6 +2,7 @@
 Unit tests for the stem.response.protocolinfo.ProtocolInfoResponse class.
 """
 
+import os
 import unittest
 
 import stem.socket
@@ -170,7 +171,7 @@ class TestProtocolInfoResponse(unittest.TestCase):
     
     stem.connection._expand_cookie_path(control_message, stem.util.system.get_pid_by_name, "tor")
     
-    self.assertEquals("/tmp/foo/tor-browser_en-US/Data/control_auth_cookie", control_message.cookie_path)
+    self.assertEquals(os.path.join("/tmp/foo", "tor-browser_en-US", "Data", "control_auth_cookie"), control_message.cookie_path)
     
     # exercise cookie expansion where both calls fail (should work, just
     # leaving the path unexpanded)



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