diff options
author | drebs <drebs@leap.se> | 2013-05-23 14:27:41 -0300 |
---|---|---|
committer | drebs <drebs@leap.se> | 2013-05-23 14:27:41 -0300 |
commit | 5da6cb3a430ee3f510552051bf79e4aa36fd6ad1 (patch) | |
tree | d0a4f5df402a39f0c1144a3964d46a808d092af5 /src/leap/soledad/tests/test_soledad.py | |
parent | 177bfa18ac33f281d0a4f12555f0f3b7c84efc3d (diff) |
Fix tests paths.
Diffstat (limited to 'src/leap/soledad/tests/test_soledad.py')
-rw-r--r-- | src/leap/soledad/tests/test_soledad.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/leap/soledad/tests/test_soledad.py b/src/leap/soledad/tests/test_soledad.py index 45cd7eb2..5eef039f 100644 --- a/src/leap/soledad/tests/test_soledad.py +++ b/src/leap/soledad/tests/test_soledad.py @@ -41,7 +41,7 @@ from leap.soledad.backends.leap_backend import LeapDocument class AuxMethodsTestCase(BaseSoledadTest): def test__init_dirs(self): - sol = self._soledad_instance(prefix='/_init_dirs') + sol = self._soledad_instance(prefix='_init_dirs') sol._init_dirs() local_db_dir = os.path.dirname(sol.local_db_path) secrets_path = os.path.dirname(sol.secrets_path) @@ -94,8 +94,12 @@ class AuxMethodsTestCase(BaseSoledadTest): local_db_path='value_2', server_url='value_1', cert_file=None) - self.assertEqual(self.tempdir+'value_3', sol.secrets_path) - self.assertEqual(self.tempdir+'value_2', sol.local_db_path) + self.assertEqual( + os.path.join(self.tempdir, 'value_3'), + sol.secrets_path) + self.assertEqual( + os.path.join(self.tempdir, 'value_2'), + sol.local_db_path) self.assertEqual('value_1', sol.server_url) |