1143
1141
def test_broken_config(self):
1144
1142
conf = config.AuthenticationConfig(_file=StringIO('[DEF'))
1145
1143
self.assertRaises(errors.ParseConfigError, conf._get_config)
1146
1145
conf = config.AuthenticationConfig(_file=StringIO(
1152
1151
self.assertRaises(ValueError, conf.get_credentials, 'ftp', 'foo.net')