MCPcopy Create free account
hub / github.com/CiscoPSIRT/openVulnQuery / test_main_missing_adv_format

Method test_main_missing_adv_format

tests/test_main.py:56–60  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

54 self.assertEqual(e.exception.code, 0)
55
56 def test_main_missing_adv_format(self):
57 string_list = '--severity critical'.split()
58 with self.assertRaises(SystemExit) as e:
59 main.main(string_list)
60 self.assertEqual(e.exception.code, 2)
61
62 def test_main_unknown_adv_format(self):
63 string_list = '--unknown'.split()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected