MCPcopy Create free account
hub / github.com/alephdata/aleph / test_getbool

Method test_getbool

aleph/tests/test_search_parser.py:46–50  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

44 self.assertEqual(args.getint("notakey", 8), 8)
45
46 def test_getbool(self):
47 self.assertEqual(args.getbool("mybool"), True)
48 self.assertEqual(args.getbool("mybadbool"), False)
49 self.assertEqual(args.getbool("notakey"), False)
50 self.assertEqual(args.getbool("notakey", True), True)
51
52 def test_to_dict(self):
53 parser_dict = args.to_dict()

Callers

nothing calls this directly

Calls 1

getboolMethod · 0.80

Tested by

no test coverage detected