Merge pull request #1225 from coreos-inc/setuptooltest

Add tests for superuser config API calls
This commit is contained in:
josephschorr 2016-02-16 17:01:43 -05:00
commit 6f9fc7fc08
2 changed files with 111 additions and 7 deletions

View file

@ -7,8 +7,11 @@ class TestConfigProvider(BaseProvider):
""" Implementation of the config provider for testing. Everything is kept in-memory instead on
the real file system. """
def __init__(self):
self.clear()
def clear(self):
self.files = {}
self._config = None
self._config = {}
@property
def provider_id(self):