MCPcopy Index your code
hub / github.com/python/cpython / test_get_option_equals

Method test_get_option_equals

Lib/test/test_optparse.py:362–367  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

360 self.assertEqual(opt1.dest, "verbose")
361
362 def test_get_option_equals(self):
363 opt1 = self.parser.get_option("-v")
364 opt2 = self.parser.get_option("--verbose")
365 opt3 = self.parser.get_option("-n")
366 opt4 = self.parser.get_option("--noisy")
367 self.assertTrue(opt1 is opt2 is opt3 is opt4)
368
369 def test_has_option(self):
370 self.assertTrue(self.parser.has_option("-v"))

Callers

nothing calls this directly

Calls 2

assertTrueMethod · 0.80
get_optionMethod · 0.45

Tested by

no test coverage detected