

def test_malformedSecondary(self):
    '\n        If the value supplied for an I{--secondary} option does not provide a\n        server IP address, optional port number, and domain name,\n        L{Options.parseOptions} raises L{UsageError}.\n        '
    options = Options()
    self.assertRaises(UsageError, options.parseOptions, ['--secondary', ''])
    self.assertRaises(UsageError, options.parseOptions, ['--secondary', '1.2.3.4'])
    self.assertRaises(UsageError, options.parseOptions, ['--secondary', '1.2.3.4:hello'])
    self.assertRaises(UsageError, options.parseOptions, ['--secondary', '1.2.3.4:hello/example.com'])

dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/names/test/test_tap.py OptionsTests.test_malformedSecondary/original