Test setting agree-dev-preview in config file

This commit is contained in:
Brad Warren
2015-12-11 16:13:06 -08:00
parent 9248ba1e96
commit 75bc227cfa
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -551,6 +551,11 @@ class CLITest(unittest.TestCase): # pylint: disable=too-many-public-methods
self.assertEqual(path, os.path.abspath(path))
self.assertEqual(contents, test_contents)
def test_agree_dev_preview_config(self):
with MockedVerb('run') as mocked_run:
self._call(['-c', test_util.vector_path('cli.ini')])
self.assertTrue(mocked_run.called)
class DetermineAccountTest(unittest.TestCase):
"""Tests for letsencrypt.cli._determine_account."""
+1
View File
@@ -0,0 +1 @@
agree-dev-preview = True