Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
6af3de2d
Commit
6af3de2d
authored
Dec 10, 2012
by
Mukund Sivaraman
Browse files
[2353] Use a test environment instead of an empty one
parent
366f210b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/bind10/tests/bind10_test.py.in
View file @
6af3de2d
...
...
@@ -1701,7 +1701,7 @@ class TestBossComponents(unittest.TestCase):
return ({}, None)
bob = MockBobSimple()
bob.c_channel_env = {}
bob.c_channel_env = {
'TESTENV': 'A test string'
}
bob.cc_session = DummySession()
bob.wait_time = 5
...
...
@@ -1720,7 +1720,7 @@ class TestBossComponents(unittest.TestCase):
pi = bob.start_cfgmgr()
self.assertEqual('b10-cfgmgr', pi.name)
self.assertEqual(['b10-cfgmgr'], pi.args)
self.assertEqual({}, pi.env)
self.assertEqual({
'TESTENV': 'A test string'
}, pi.env)
# this is set by ProcessInfo.spawn()
self.assertEqual(42147, pi.pid)
...
...
@@ -1736,7 +1736,7 @@ class TestBossComponents(unittest.TestCase):
self.assertEqual(['b10-cfgmgr',
'--data-path=/var/lib/test'],
pi.args)
self.assertEqual({}, pi.env)
self.assertEqual({
'TESTENV': 'A test string'
}, pi.env)
# this is set by ProcessInfo.spawn()
self.assertEqual(42147, pi.pid)
...
...
@@ -1749,7 +1749,7 @@ class TestBossComponents(unittest.TestCase):
'--data-path=/var/lib/test',
'--config-filename=foo.cfg'],
pi.args)
self.assertEqual({}, pi.env)
self.assertEqual({
'TESTENV': 'A test string'
}, pi.env)
# this is set by ProcessInfo.spawn()
self.assertEqual(42147, pi.pid)
...
...
@@ -1763,7 +1763,7 @@ class TestBossComponents(unittest.TestCase):
'--config-filename=foo.cfg',
'--clear-config'],
pi.args)
self.assertEqual({}, pi.env)
self.assertEqual({
'TESTENV': 'A test string'
}, pi.env)
# this is set by ProcessInfo.spawn()
self.assertEqual(42147, pi.pid)
...
...
@@ -1863,12 +1863,12 @@ class TestBossComponents(unittest.TestCase):
bob.start_simple('/bin/true')
self.assertEqual('/bin/true', bob.started_process_name)
self.assertEqual(args, bob.started_process_args)
self.assertEqual({}, bob.started_process_env)
self.assertEqual({
'TESTENV': 'A test string'
}, bob.started_process_env)
def test_start_simple(self):
'''Test simple process startup.'''
bob = MockBobSimple()
bob.c_channel_env = {}
bob.c_channel_env = {
'TESTENV': 'A test string'
}
# non-verbose case
self._start_simple_helper(bob, False)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment