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

Method test_count_fields_invalid_input

tests/test_utils.py:91–95  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

89 self.assertDictEqual(output, expected_output)
90
91 def test_count_fields_invalid_input(self):
92 fields = ["bug_ids", "v_score"]
93 expected_output = {'bug_ids': 1, 'v_score': 0}
94 output = utils.count_fields(mock_advisories, fields)
95 self.assertDictEqual(output, expected_output)
96
97 def test_get_count_valid(self):
98 self.assertEqual(utils.get_count(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected