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

Method test_flatten_list_void_pair

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

Source from the content-addressed store, hash-verified

105 self.assertEqual(utils.get_count(getattr(mock_advisory, "cves")), 1)
106
107 def test_flatten_list_void_pair(self):
108 naive_void = [{}, {}]
109 self.assertListEqual(utils.flatten_list(naive_void), naive_void)
110
111 def test_flatten_list_distinct_pair(self):
112 naive_distinct = [{'foo': 'bar'}, {'baz': ''}]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected