mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-10 04:09:58 +00:00
dead code
This commit is contained in:
parent
abd7b638b8
commit
27ea11d164
@ -267,43 +267,6 @@ class TestCase(testutil.SignalMixin, unittest.TestCase):
|
||||
self.failUnless(ns.called)
|
||||
|
||||
|
||||
class EmptyNode(Node):
|
||||
def __init__(self, config=None):
|
||||
if config is None:
|
||||
config = config_from_string("", "no portfile", 'no basedir')
|
||||
Node.__init__(self, config)
|
||||
|
||||
|
||||
EXPECTED = {
|
||||
# top-level key is tub.port category
|
||||
"missing": {
|
||||
# 2nd-level key is tub.location category
|
||||
"missing": "alloc/auto",
|
||||
"empty": "ERR2",
|
||||
"disabled": "ERR4",
|
||||
"hintstring": "alloc/file",
|
||||
},
|
||||
"empty": {
|
||||
"missing": "ERR1",
|
||||
"empty": "ERR1",
|
||||
"disabled": "ERR1",
|
||||
"hintstring": "ERR1",
|
||||
},
|
||||
"disabled": {
|
||||
"missing": "ERR3",
|
||||
"empty": "ERR2",
|
||||
"disabled": "no-listen",
|
||||
"hintstring": "ERR3",
|
||||
},
|
||||
"endpoint": {
|
||||
"missing": "auto",
|
||||
"empty": "ERR2",
|
||||
"disabled": "ERR4",
|
||||
"hintstring": "manual",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
class TestMissingPorts(unittest.TestCase):
|
||||
"""
|
||||
Test certain error-cases for ports setup
|
||||
@ -570,7 +533,7 @@ class Listeners(unittest.TestCase):
|
||||
|
||||
tub_mock = mock.patch("allmydata.node.Tub", return_value=FakeTub())
|
||||
with i2p_mock, tor_mock, tub_mock:
|
||||
n = EmptyNode(config)
|
||||
n = Node(config)
|
||||
|
||||
self.assertEqual(n._i2p_provider.get_listener.mock_calls, [mock.call()])
|
||||
self.assertEqual(n._tor_provider.get_listener.mock_calls, [mock.call()])
|
||||
|
Loading…
x
Reference in New Issue
Block a user