test introducerless config

refs ticket:68
This commit is contained in:
Brian Warner 2016-09-12 17:45:17 -07:00
parent 3b24e7e35e
commit d802135db1

View File

@ -116,5 +116,11 @@ class NoDefault(unittest.TestCase):
tahoe_cfg_furl = myclient.introducer_furls[0]
self.assertEquals(tahoe_cfg_furl, 'furl1')
def test_introducerless(self):
connections = {'introducers': {} }
self.yaml_path.setContent(yamlutil.safe_dump(connections))
myclient = Client(self.basedir)
self.assertEquals(len(myclient.introducer_furls), 0)
if __name__ == "__main__":
unittest.main()