def METHOD_NAME(self):
    longopts, shortopts = getopt.getopt(['--help='], '', ['help='])
    self.assertEqual(longopts, [('--help', '')])
    longopts, shortopts = getopt.getopt(['--help=x'], '', ['help='])
    self.assertEqual(longopts, [('--help', 'x')])
    self.assertRaises(getopt.GetoptError, getopt.getopt, ['--help='], '', ['help'])