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

Method test_count_fields_valid_input

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

Source from the content-addressed store, hash-verified

83 self.assertDictEqual(output[0], expected_output[0])
84
85 def test_count_fields_valid_input(self):
86 fields = ["bug_ids", "advisory_title"]
87 expected_output = {'bug_ids': 1, 'advisory_title': 1}
88 output = utils.count_fields(mock_advisories, fields)
89 self.assertDictEqual(output, expected_output)
90
91 def test_count_fields_invalid_input(self):
92 fields = ["bug_ids", "v_score"]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected