def METHOD_NAME(self, _mock_stderr):
    with self.assertRaises(SystemExit):
        self.parse_args(['--port=65536'])
    with self.assertRaises(SystemExit):
        self.parse_args(['--port=0'])
    args = self.parse_args(['--port=3353'])
    self.assertEqual(3353, args.port)