def test_requiresPort(self):
        """
        L{manhole_tap.makeService} requires either 'telnetPort' or 'sshPort' to
        be given.
        """
        with self.assertRaises(usage.UsageError) as e:
            manhole_tap.Options().parseOptions([])

        self.assertEqual(e.exception.args[0], ("At least one of --telnetPort "
                         "and --sshPort must be specified"))

        L{manhole_tap.makeService} requires either 'telnetPort' or 'sshPort' to
        be given.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/conch/test/test_manhole_tap.py