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

Method test_get_count_valid

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

Source from the content-addressed store, hash-verified

95 self.assertDictEqual(output, expected_output)
96
97 def test_get_count_valid(self):
98 self.assertEqual(utils.get_count(
99 getattr(mock_advisory, "advisory_title")), 1)
100 self.assertEqual(utils.get_count(
101 getattr(mock_advisory, "product_names")), 2)
102
103 def test_get_count_fields_with_NA(self):
104 self.assertEqual(utils.get_count(getattr(mock_advisory, "cwe")), 0)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected