Skip to content

Commit

Permalink
fix setup/teardown of config
Browse files Browse the repository at this point in the history
  • Loading branch information
opalmer committed Mar 30, 2015
1 parent aa4071c commit dff3b66
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions tests/test_agent/test_http_api_state.py
Expand Up @@ -85,12 +85,18 @@ class TestStatus(BaseAPITestCase):
URI = "/status"
CLASS = Status

def setUp(self):
super(TestStatus, self).setUp()
self._config = config.copy()

def tearDown(self):
super(TestStatus, self).tearDown()
config.update(self._config)

def prepare_config(self):
super(TestStatus, self).prepare_config()
config.update(
state=AgentState.ONLINE,
pids=[1, 2, 3],
start=time.time())
state=AgentState.ONLINE, pids=[1, 2, 3])

def test_get_requires_no_input(self):
request = self.get()
Expand Down

0 comments on commit dff3b66

Please sign in to comment.