Example #1
0
 def test_get_count_fields_with_NA(self):
     self.assertEqual(utils.get_count(getattr(mock_advisory, "cwe")), 0)
     self.assertEqual(utils.get_count(getattr(mock_advisory, "cves")), 1)
Example #2
0
 def test_get_count_valid(self):
     self.assertEqual(
         utils.get_count(getattr(mock_advisory, "advisory_title")), 1)
     self.assertEqual(
         utils.get_count(getattr(mock_advisory, "product_names")), 2)