mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-03-05 21:51:45 +00:00
better-ize test
This commit is contained in:
parent
7fa0f64f1c
commit
f3b3341267
@ -432,10 +432,17 @@ class TestCase(testutil.SignalMixin, unittest.TestCase):
|
||||
self.failUnless(ns.called)
|
||||
|
||||
def test_set_config_new_section(self):
|
||||
"""
|
||||
set_config() can create a new config section
|
||||
"""
|
||||
basedir = "test_node/test_set_config_new_section"
|
||||
config = config_from_string(basedir, "", "")
|
||||
config.set_config("foo", "bar", "value1")
|
||||
config.set_config("foo", "bar", "value2")
|
||||
self.assertEqual(
|
||||
config.get_config("foo", "bar"),
|
||||
"value2"
|
||||
)
|
||||
|
||||
|
||||
class TestMissingPorts(unittest.TestCase):
|
||||
|
Loading…
x
Reference in New Issue
Block a user