def METHOD_NAME(self):
    opts, args = getopt.do_shorts([], 'a', 'a', [])
    self.assertEqual(opts, [('-a', '')])
    self.assertEqual(args, [])
    opts, args = getopt.do_shorts([], 'a1', 'a:', [])
    self.assertEqual(opts, [('-a', '1')])
    self.assertEqual(args, [])
    #opts, args = getopt.do_shorts([], 'a=1', 'a:', [])
    #self.assertEqual(opts, [('-a', '1')])
    #self.assertEqual(args, [])
    opts, args = getopt.do_shorts([], 'a', 'a:', ['1'])
    self.assertEqual(opts, [('-a', '1')])
    self.assertEqual(args, [])
    opts, args = getopt.do_shorts([], 'a', 'a:', ['1', '2'])
    self.assertEqual(opts, [('-a', '1')])
    self.assertEqual(args, ['2'])
    self.assertError(getopt.do_shorts, [], 'a1', 'a', [])
    self.assertError(getopt.do_shorts, [], 'a', 'a:', [])