

def test_secondary(self):
    '\n        An argument of the form C{"ip/domain"} is parsed by L{Options} for the\n        I{--secondary} option and added to its list of secondaries, using the\n        default DNS port number.\n        '
    options = Options()
    options.parseOptions(['--secondary', '1.2.3.4/example.com'])
    self.assertEqual([(('1.2.3.4', PORT), ['example.com'])], options.secondaries)

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