def METHOD_NAME(self):
    opts, args = getopt.do_longs([], 'abc', ['abc'], [])
    self.assertEqual(opts, [('--abc', '')])
    self.assertEqual(args, [])
    opts, args = getopt.do_longs([], 'abc=1', ['abc='], [])
    self.assertEqual(opts, [('--abc', '1')])
    self.assertEqual(args, [])
    opts, args = getopt.do_longs([], 'abc=1', ['abcd='], [])
    self.assertEqual(opts, [('--abcd', '1')])
    self.assertEqual(args, [])
    opts, args = getopt.do_longs([], 'abc', ['ab', 'abc', 'abcd'], [])
    self.assertEqual(opts, [('--abc', '')])
    self.assertEqual(args, [])
    # Much like the preceding, except with a non-alpha character ("-") in
    # option name that precedes "="; failed in
    # http://python.org/sf/126863
    opts, args = getopt.do_longs([], 'foo=42', ['foo-bar', 'foo=',], [])
    self.assertEqual(opts, [('--foo', '42')])
    self.assertEqual(args, [])
    self.assertError(getopt.do_longs, [], 'abc=1', ['abc'], [])
    self.assertError(getopt.do_longs, [], 'abc', ['abc='], [])