summaryrefslogtreecommitdiff
path: root/src/leap/soledad/tests/test_soledad.py
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2013-04-29 15:39:57 -0300
committerdrebs <drebs@leap.se>2013-04-29 15:39:57 -0300
commit2b52811ce7357b1a10aacb274903e090574166cc (patch)
treee7e4295d53e786635d023f0004d2d1bc460be36c /src/leap/soledad/tests/test_soledad.py
parentcc9537b9c73c6f502dc4576df0aee4409e887d47 (diff)
Remove gnupg_home from where it still was.
Diffstat (limited to 'src/leap/soledad/tests/test_soledad.py')
-rw-r--r--src/leap/soledad/tests/test_soledad.py22
1 files changed, 6 insertions, 16 deletions
diff --git a/src/leap/soledad/tests/test_soledad.py b/src/leap/soledad/tests/test_soledad.py
index bbe9ad4b..caf9be44 100644
--- a/src/leap/soledad/tests/test_soledad.py
+++ b/src/leap/soledad/tests/test_soledad.py
@@ -41,10 +41,8 @@ class AuxMethodsTestCase(BaseSoledadTest):
sol = self._soledad_instance(prefix='/_init_dirs')
sol._init_dirs()
local_db_dir = os.path.dirname(sol._config.get_local_db_path())
- gnupg_home = os.path.dirname(sol._config.get_gnupg_home())
secret_path = os.path.dirname(sol._config.get_secret_path())
self.assertTrue(os.path.isdir(local_db_dir))
- self.assertTrue(os.path.isdir(gnupg_home))
self.assertTrue(os.path.isdir(secret_path))
def test__init_db(self):
@@ -65,8 +63,6 @@ class AuxMethodsTestCase(BaseSoledadTest):
"""
sol = Soledad('leap@leap.se', passphrase='123', bootstrap=False)
self.assertTrue(bool(re.match(
- '.*/\.config/leap/soledad/gnupg', sol._config.get_gnupg_home())))
- self.assertTrue(bool(re.match(
'.*/\.config/leap/soledad/secret.gpg',
sol._config.get_secret_path())))
self.assertTrue(bool(re.match(
@@ -85,8 +81,6 @@ class AuxMethodsTestCase(BaseSoledadTest):
# that change.
sol = Soledad('leap@leap.se', passphrase='123', bootstrap=False)
self.assertTrue(bool(re.match(
- '.*/\.config/leap/soledad/gnupg', sol._config.get_gnupg_home())))
- self.assertTrue(bool(re.match(
'.*/\.config/leap/soledad/secret.gpg',
sol._config.get_secret_path())))
self.assertTrue(bool(re.match(
@@ -104,10 +98,9 @@ class AuxMethodsTestCase(BaseSoledadTest):
# changed by the BaseLeapTest class but BaseConfig does not capture
# that change.
config_values = {
- "gnupg_home": "value_1",
- "secret_path": "value_2",
- "local_db_path": "value_3",
- "shared_db_url": "value_4"
+ "secret_path": "value_1",
+ "local_db_path": "value_2",
+ "shared_db_url": "value_3"
}
tmpfile = tempfile.mktemp(dir=self.tempdir)
f = open(tmpfile, 'w')
@@ -118,10 +111,9 @@ class AuxMethodsTestCase(BaseSoledadTest):
passphrase='123',
bootstrap=False,
config_path=tmpfile)
- self.assertEqual('value_1', sol._config.get_gnupg_home())
- self.assertEqual('value_2', sol._config.get_secret_path())
- self.assertEqual('value_3', sol._config.get_local_db_path())
- self.assertEqual('value_4', sol._config.get_shared_db_url())
+ self.assertEqual('value_1', sol._config.get_secret_path())
+ self.assertEqual('value_2', sol._config.get_local_db_path())
+ self.assertEqual('value_3', sol._config.get_shared_db_url())
def test__init_config_from_params(self):
"""
@@ -134,11 +126,9 @@ class AuxMethodsTestCase(BaseSoledadTest):
'leap@leap.se',
passphrase='123',
bootstrap=False,
- gnupg_home='value_4',
secret_path='value_3',
local_db_path='value_2',
shared_db_url='value_1')
- self.assertEqual('value_4', sol._config.get_gnupg_home())
self.assertEqual('value_3', sol._config.get_secret_path())
self.assertEqual('value_2', sol._config.get_local_db_path())
self.assertEqual('value_1', sol._config.get_shared_db_url())