[tor-commits] [stem/master] Replaced a hardcoded path in test_relative_cookie
atagar at torproject.org
atagar at torproject.org
Sun Jul 1 02:49:59 UTC 2012
commit 7515471fa13c92873307054ea9e40ef5eea64c4a
Author: Beck <csybeck at gmail.com>
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)
More information about the tor-commits
mailing list